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

bug: Vscode debugger freezes when running code that is from a different package of the root debug session #687

Open
dBianchii opened this issue Oct 20, 2023 · 0 comments

Comments

@dBianchii
Copy link
Contributor

Provide environment information

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz
    Memory: 8.84 GB / 15.36 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
    pnpm: 8.9.2 - ~/.local/share/pnpm/pnpm

Describe the bug

When creating a new debug session in Vscode for a specific app, the debug session works fine for all internal code that is from the same package. In this case I have a kdx NextJS debug session that is being run from the launch configuration that came with the repo. Then, when debugging code in my api package, inside a TRPC endpoint, the debugger freezes at the first endpoint, and I cannot click F5, or hit continue. The "variables" section on the Run and Debug tab keeps loading forever, and the only way to progress is to kill the session.

I would create this issue at vscode's Github repository, but I think this is only occuring because of some monorepo configuration, confusing the debugger when trying to access code at other packages

2023-10-19.20-58-38.mp4

Link to reproduction

I can maybe share a repository in case someone else can't replicate it with this one

To reproduce

Run the NextJs debugger, place breakpoints at tRPC endpoint and have the debugger hit that breakpoint

Additional information

No response

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

1 participant