Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not exit dap console after input #424

Open
caelumable opened this issue Jan 17, 2025 · 2 comments
Open

Can not exit dap console after input #424

caelumable opened this issue Jan 17, 2025 · 2 comments

Comments

@caelumable
Copy link

When debuging some programs which need inputs, I have to switch to dap console and input args.

But there is no way to exit dap console. The dap console captures every key I input.

When I just use the dap plugins, after I input args and press the "enter" key, the dap console loose focus imediately.

I would appreciate it if someone could help me with this.

@sleeptightAnsiC
Copy link
Contributor

Isn't this nvim-dap specific issue (NOT nvim-dap-ui) ?
nvim-dap-ui uses console and repl provided by nvim-dap
Do you have minimal reproduction steps?

@caelumable
Copy link
Author

Isn't this nvim-dap specific issue (NOT nvim-dap-ui) ? nvim-dap-ui uses console and repl provided by nvim-dap Do you have minimal reproduction steps?

I know where the problem is. I set the vim.opt.splitbelow=true and vim.opt.splitright=true, which makes the nvim-dap-ui console do not act as expected. After I cancelled these settings, It works fine.

But when I use nvim-dap console by setting dap.defaults.fallback.terminal_win_cmd = "10vsplit new", It works fine with the setting vim.opt.splitbelow=true and vim.opt.splitright=true.

I don't know what's the difference between them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants