You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to debug the plug-in itself and press F5 to start debugging. However, when setting breakpoints for code-debug, only the breakpoints in extension.ts are active, while the breakpoints in other files are gray and cannot be paused.
Another debugging method is to use console. log () for output. Only the console. log function in extension. ts has output.
Sorry, I may not have made it clear. We wanted to make some changes to code-debug, so we wanted to debug code-debug, but some breakpoints did not work. As shown in the figure below, the breakpoints in mibase are gray. As can be seen from the code, the handleBreakpoint function in mibase.ts has been executed, but it has not been paused.
Activity
GitMensch commentedon Mar 20, 2023
Have you had a look at https://github.com/WebFreak001/code-debug/blob/master/HACKING.md#runningdebugging? Please outline where it is misleading or misses information.
zhangly1234 commentedon Mar 23, 2023
Sorry, I may not have made it clear. We wanted to make some changes to code-debug, so we wanted to debug code-debug, but some breakpoints did not work. As shown in the figure below, the breakpoints in mibase are gray. As can be seen from the code, the handleBreakpoint function in mibase.ts has been executed, but it has not been paused.

GitMensch commentedon Mar 23, 2023
As far as I see it you want to debug both the frontend and backend, and the docs I've linked to explicit writes how to do that (you need to run two launch configurations at once), see https://code.visualstudio.com/api/extension-guides/debugger-extension#development-setup-for-mock-debug and https://github.com/WebFreak001/code-debug/blob/master/HACKING.md#debugger.