All Questions
29 questions
0
votes
1
answer
313
views
Next.js server-side code debugging in VS Code or Dev Tools: lack of source files, debugger doesn't stop on 'debugging' line, breakpoints are 'unbound'
I started learning Next.js and looking for a way to debug server-side code.
I read the Next.js official documentation and followed all the steps there.
I am using Node v. 23.3.0
I created my project ...
0
votes
1
answer
614
views
VS Code server side debugging / breakpoints for Nx / NextJS app?
I have inherited an Nx monorepo using NextJS, Typescript, Yarn (for package), etc. and I cannot get server-side debugging working reliably. Somehow I had it working once, lost it, and honestly I am at ...
0
votes
0
answers
124
views
Next js (node 20.14.0) Error when starting debugging on VS Code
I have problem when i try run debuging on my next js project in VS Code.
After click "Bug" icon on dev script i have fallowing error:
I've already tried removing node_modules, package-lock....
0
votes
1
answer
425
views
VSCode nodejs debugger saying attached but its only working for one of my nodejs files
I have been using the attach debugger and it was working fine until yesterday when it only seems to work on one of my nodejs files. When I attach the debugger it says its attached and I can then set a ...
0
votes
0
answers
460
views
Node js Debugger in Visual studio code is not letting me debug by hitting the api url
I may be unaware about the debugging in VS code tool. I am trying to debug my typescript code using Nodejs debugger. But, I expect that as soon as I click on Debug play button the server of my code ...
1
vote
2
answers
87
views
Inconsistency of `this` when debugging a typescript program under VS code
edit: I think I have seen this problem when using chrome to debug my full application. So, not sure if this is a typescript issue or a VScode issue.
I was about to submit when I thought I should try ...
1
vote
3
answers
910
views
How to debug any file in node JS without specifying the file name in launch,json
I want to debug both workout.js and test.js but vscode is debugging only the workout.js
how do I set the file name dynamic. so I can debug any js file with one launch.json config
Like
"program&...
2
votes
2
answers
7k
views
How to debug node process that exits unexpectedly with code 1, but no apparent error message, and unpredictably
I already have handlers for uncaughtException and unhandledRejection and I am thinking that this isn't a js error at all, as it happens at several different points in the code, and other times does ...
0
votes
2
answers
634
views
Debugging Typescript Node app with attach
I'm building a full stack boilerplate project with the following folder structure:
boilerplate-app
|---server
|---src
|---dist
|---node_modules
|---client
|---.vscode
|---launch.json
...
1
vote
2
answers
3k
views
How to debug "built" production NodeJS
I am using Visual Studio code to debug a node application in production environment
The Node process runs inside docker,
I port-forwarded and signaled USR1 to enable attaching debugger from VS code to ...
4
votes
0
answers
2k
views
Visual Studio Debug Error: ENOENT: no such file or directory, open
I am building a node server (without Express), and have an issue that ONLY appears during debugging, and working fine otherwise.
Basically, it cannot find the file (index.html) I am trying to serve, ...
0
votes
1
answer
1k
views
How to make VS Code debug Electron App reproducibly?
I used Electron React Boilerplate to create an app which has Hot reload, Typescript, Crossenv, Webpack, Babel, React devTools, and vscode debug configs built in.
Question: How do I get VSCode to ...
0
votes
2
answers
1k
views
How to debug a value from a function if it is called inside return statement?
I want to know how to get the value from a function if it is inside a returning statement.
For instance, I have the following function;
function a () {
return b(); // How to know the value ...
0
votes
0
answers
643
views
Uncaught Error: ENOENT: no such file or directory, open '/etc/resolv.conf'
Uncaught Error: ENOENT: no such file or directory, open '/etc/resolv.conf'
I think this error message suggests a dns lookup, but I don't have any DNS lookups in my code that I am aware of.
I thought ...
0
votes
0
answers
115
views
Can i skip node internal modules in nodejs debugging while using visual studio code? [duplicate]
When im debugging a nodejs project, sometimes it just jump into the internal modules, "path.js helper.js loader.js util.js validator.js..."
How can i just skip from jump into those files while ...