Skip to content
New issue

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

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

Already on GitHub? # to your account

Consider using vimspector for vscode like debugging #13

Open
dsych opened this issue Feb 6, 2021 · 6 comments
Open

Consider using vimspector for vscode like debugging #13

dsych opened this issue Feb 6, 2021 · 6 comments

Comments

@dsych
Copy link

dsych commented Feb 6, 2021

There is this REALLY cool project that uses DAP from vscode to allow the same debugging experience by re-using the extension ecosystem.

Check it out here: https://github.com/puremourning/vimspector

Seems like this would go a long way complimenting coc-nvim in emulating IDE features.

@GideonWolfe
Copy link
Owner

Thanks for the suggestion! I've heard of this but to be honest haven't had a real reason to use it, though I surely will eventually. I'll take a look myself but I will probably add it since there's nothing else that covers this use case at all.

@dsych
Copy link
Author

dsych commented Feb 6, 2021

Wow this was fast! Great to hear that you will consider it. I use it daily to work on c++ code and so far it has been a blast.

@GideonWolfe
Copy link
Owner

Cool! Is there any specific configurations/keybinds that you find to be helpful in your workflow? Maybe <leader>+somekey to open the debug window?

@dsych
Copy link
Author

dsych commented Feb 6, 2021

vimspector comes with a set of predefined keybindings to manage debug sessions, see this. so we just need to set let g:vimspector_enable_mappings.
i have also seen people define keymaps for quick navigation between vimspector windows e.g. nmap <leader>dw :call win_gotoid("g:vimspector_session_windows.watches") this will jump the current window to the Watches right away instead of using window navigation; see this link for reference.

@dsych
Copy link
Author

dsych commented Feb 6, 2021

oh, and using the same window ids you can shift the layout as well, say you dont want the terminal window or you would like to adjust the size of the variables window to be bigger, see this for an example

@Ziad0dev
Copy link
Contributor

#17 (comment) feel free to check my PR and add more bindings

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

No branches or pull requests

3 participants