-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
It would be nice to have an option to enable node debugging for server-side code to be able to stop on breakpoints inspect variables and etc.
Proposed syntaxis is:
svelte-kit dev --inspect
Currently, it's possible to start debugger using:
"dev": "NODE_OPTIONS=\"--inspect\" svelte-kit dev"
This enables inspecting and i successfully connected to the nodejs using Chrome Dev Tools.
But looks like server-side code generated without source maps and it makes it impossible to put breakpoints inside IDE such as Vs Code or Webstorm (they just ignore breakpoints and execute code without stop).
So when --inspect option is set we should pass through this flag to nodejs and enable sourcemaps in all transpilers/vite
Reactions are currently unavailable