Debugging full-stack Remix in Cursor & VSCode
26/09/2025
1 min read
#DevExperience
This is how to get a great debugging setup with Remix that supports both server-side and client-side debugging in your editor.
Workflow
- open project in your editor
- Run "start debugging" (shortcut or via command panel)
And that's it! You now have a dev server running in editor terminal and Chrome launching a window for running the app. Now you can add breakpoints and figure out why that pesky bug is happening!
using a breakpoint in a Remix loader()
using a breakpoint in a Remix component
Setting it up
Just add this launch configuration
(inspired by NextJS) as ./vscode/launch.json
in
the root of your project:
{
"version": "0.2.0",
"configurations": [
{
"name": "Remix: debug full stack",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/server.mjs",
"runtimeArgs": ["--inspect"],
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"serverReadyAction": {
"action": "debugWithChrome",
"killOnServerStop": true,
"pattern": "Express server listening at (https?://.+)",
"uriFormat": "%s",
"webRoot": "${workspaceFolder}/app"
},
"env": {
"NODE_ENV": "development"
}
}
]
}