Replies: 3 comments
-
I don't think this is something we can "fix", this sounds more like a usage question, therefore turning this into a discussion. |
Beta Was this translation helpful? Give feedback.
-
In dev, you can get vscode step debugging on the server like so:
But if you use Here is a vscode launch config, but remember to run {
"version": "0.2.0",
"configurations": [
{
"name": "debug sveltekit server",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"skipFiles": [
"<node_internals>/**"
],
"args": [
"--inspect",
"-r",
"source-map-support/register",
"build/index.js"
],
"console": "internalConsole"
}
]
} More info here: https://www.youtube.com/watch?v=ubeOpB9FlZE |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Me failed to get stepped debugging SSR code of the default (vite-based, created in the way recommended on the SvelteKit site) project in VsCode. Many settings in 'vite.config.js' & 'launch.js' were tried.
Reproduction
Any project with SSR endpoints
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions