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

Debug this plugin #395

Open
zhangly1234 opened this issue Mar 20, 2023 · 3 comments
Open

Debug this plugin #395

zhangly1234 opened this issue Mar 20, 2023 · 3 comments

Comments

@zhangly1234
Copy link

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?

@GitMensch
Copy link
Collaborator

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
Copy link
Author

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.
issue

@GitMensch
Copy link
Collaborator

GitMensch commented 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.

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