Open zhangly1234 opened 1 year ago
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.
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.
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.
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.
Why is this and what are the solutions?