You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
i find very useful to use node's debugger (either through chrome's integration or the "gdb-style" node debugger directly), however, i can't get it working with magnet start, maybe because of how it reload files .. no idea hmmm
I suppose this is not a priority but it helps a lot to debug & profile applications.
Perhaps we can get it running if we disable hot reloading? Wdyt?
Thx! 💃
Reproducing is straightforward:
npm i express
echo"var express = require('express')var app = express()app.get('/', function (req, res) { debugger; res.send('Hello World!')})app.listen(3000, function () { console.log('Example app listening on port 3000!')})"> index.js
node debug index.js
> cont
then curl localhost:3000/ and see that it will stop at the debugger line:
Also true for --inspect:
However, having a directory with magnet installed and a file authorize.js which has simply
Hey,
i find very useful to use node's debugger (either through chrome's integration or the "gdb-style" node debugger directly), however, i can't get it working with
magnet start
, maybe because of how it reload files .. no idea hmmmI suppose this is not a priority but it helps a lot to debug & profile applications.
Perhaps we can get it running if we disable hot reloading? Wdyt?
Thx! 💃
Reproducing is straightforward:
then
curl localhost:3000/
and see that it will stop at thedebugger
line:Also true for
--inspect
:However, having a directory with
magnet
installed and a fileauthorize.js
which has simplydoes not trigger the breakpoint on
debugger
.The text was updated successfully, but these errors were encountered: