Skip to content

Debugging using VS Code #2057

Closed Answered by JoobyPM
JoobyPM asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to ChatGPT, I managed to configure the VS Code debugger.
.vscode/launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Debug Nitro",
            "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/nitropack",
            "runtimeArgs": [
                "dev"
            ],
            "port": 9229,
            "outputCapture": "std",
            "restart": true,
            "console": "integratedTerminal",
            "skipFiles": [
                "<node_internals>/**"
            ]
        }
    ]
}

It would be great to add "how to debug" into Getting Started

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JoobyPM
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants