VS Code debugger's launch.json
configuration
#1567
Replies: 2 comments
-
I've also seen this question appear at least twice in the Discord server. Having documentation of how SolidStart can connect to VSCode's debugger is likely a must-have for many |
Beta Was this translation helpful? Give feedback.
-
I have this configuration: {
"configurations": [
{
"name": "Firefox Debug",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "http://localhost:3000/",
"webRoot": "${workspaceFolder}/src",
"pathMappings": [
{
"url": "http://localhost:3000/_build/@fs/D:/GitHub/a2va.dev/src",
"path": "${workspaceFolder}/src"
},
{
"url": "http://localhost:3000/_build/src",
"path": "${workspaceFolder}/src"
},
{
"url": "http://localhost:3000/_build/",
"path": "${workspaceFolder}/src"
}
]
},
{
"type": "msedge",
"request": "launch",
"name": "Edge Debug",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"pathMapping": {
"_build/@fs/D:/GitHub/a2va.dev/src": "${workspaceFolder}/src",
"_build/src/": "${workspaceFolder}/src",
"_build/": "${workspaceFolder}/src"
}
}
]
} The only problem I have is that one of the urls contain the path to the project directory, I tried to use You also need to enable the sourcemap in the vite configuration. |
Beta Was this translation helpful? Give feedback.
-
I am attempting to setup debugging of a solid-start bare starter app but not having much luck with either
attach
orlaunch
stopping at breakpoints. I've looked over Nitro and Vinxi's issues/discussions for a similar topic but have not had much luck.Does anyone have suggestions on setting up the debug configuration for node/browser in VS Code.
VS Code debugger options
Beta Was this translation helpful? Give feedback.
All reactions