admin管理员组

文章数量:1359210

I'm trying to debug a Unity project using VSCode. I'd like to be able to enable and disable breakpoints without the Unity project losing focus (some input related bugs are hard to reproduce without keeping the mouse cursor in the editor). Is there a way to set up keybindings that will be picked up by VSCode without affecting Unity?

In the current case I need to turn breakpoints on when I'm hovering over a specific cell, but not any of the adjacent cells, and only after the bug has randomly occurred. I might be able to set up a complex conditional breakpoint but it would be easier if I could just turn breakpoints on with a keypress. As far as I can see VSCode needs to have focus in order to receive keypresses, and if it gains focus that messes up my cell hovering.

I've had a look through the debugger settings on the C# extension but I can't see anything that looks helpful.

本文标签: