Skip to content

How to debug in Visual Studio Code #2522

@victordrugg

Description

@victordrugg

I'm running the project locally in Visual Studio Code, but I'm having trouble debugging.
My breakpoints aren't marked in red, and my code doesn't stop at the breakpoints.

here is my lanuch json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev:full",
"skipFiles": ["<node_internals>/**"],
"sourceMaps": true,
"sourceMapPathOverrides": {
"/turbopack/[project]/": "${webRoot}/"
},
"serverReadyAction": {
"action": "debugWithEdge",
"killOnServerStop": true,
"pattern": "- Location:.+(https?://.+)",
"uriFormat": "%s",
"webRoot": "${workspaceFolder}"
}
}
]
}

Does anyone know how to run it in debugger mode in Visual Studio Code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions