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

chore: set up VS code debugger for debugging the application with breakpoints e2e #2739

Closed
p0mvn opened this issue Jan 27, 2024 · 2 comments
Closed

Comments

@p0mvn
Copy link
Member

p0mvn commented Jan 27, 2024

We need the ability to press a button and start an app with a debugger running for developer productivity.

Acceptance Criteria

  • launch.json configuration
  • I press a button and everything works
  • Can stop on breakpoint
@p0mvn
Copy link
Member Author

p0mvn commented Jan 29, 2024

I did some investigations. The closest I could get is being able to set breakpoints in the web package only with the following configuration:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Next.js Node Debug",
            "runtimeExecutable": "${workspaceFolder}/node_modules/next/dist/bin/next",
            "cwd": "${workspaceFolder}/packages/web",
            "console": "integratedTerminal"
        }
    ]
}

Opened a discussion in the turbo repo: vercel/turbo#7135

Sources that I found useful:

@MaxMillington
Copy link
Collaborator

Closing this as most JS devs use the chrome debugger tool to step through code

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