Cannot properly attach Node debugger to vanilla "my-remix-app" #9053
Unanswered
kingstonfung
asked this question in
Q&A
Replies: 1 comment
-
Is this not going to get answered? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am following the doc (https://remix.run/docs/en/main/future/vite#debugging) here about Debugging, using a vanilla
"my-remix-app"
and a Chrome debugger tool.. I noticed the debugging behaves differently when attaching to my development session.When launching with
NODE_OPTIONS="--inspect-brk" npm run dev
, I was only able to connect with the debug session but it does not halt operations upondebugger;
statements, nor it shows any of my source files in the tree.However, under the same development conditions but launched with
node --inspect-brk node_modules/.bin/remix vite:dev
... my debug session behaves fine as I was able to attach the debugger, having it respect todebugger;
statements as well as any impromptu breakpoints selected on the source files (because I can see the files, and was able to click through them)Curious if debugging with Chrome Dev Tools is still a work-in-progress and is a known issue, or if this is probably a fresh problem?
Launching my debug session via VSCode with
NODE_OPTIONS="--inspect-brk" npm run dev
from launch.json have no issues. VSCode worked perfectly fine without reaching into node_modules.Thanks very much!
Steps to reproduce
i. Select the most simplistic setup, "minimal server" option as written
i.
npx create-remix@latest --template remix-run/remix/templates/vite
NODE_OPTIONS="--inspect-brk" npm run dev
debugger;
statements would not be available or acknowledgednode --inspect-brk node_modules/.bin/remix vite:dev
Remix 2.8.1 is the latest version as of writing
Beta Was this translation helpful? Give feedback.
All reactions