Skip to content

Debug this plugin #395

Open
Open

Description

@zhangly1234

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?

Activity

  1. GitMensch commented on Mar 20, 2023

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

  2. zhangly1234 commented on Mar 23, 2023

    @zhangly1234
    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

  3. GitMensch commented on Mar 23, 2023

    @GitMensch
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions