Skip to main content

All Questions

Tagged with
1715 votes
42 answers
559k views

How do I debug Node.js applications?

How do I debug a Node.js server application? Right now I'm mostly using alert debugging with print statements like this: sys.puts(sys.inspect(someVariable)); There must be a better way to debug. I ...
Fabian Jakobs's user avatar
1545 votes
22 answers
1.0m views

How can I get the full object in Node.js's console.log(), rather than '[Object]'?

I have this object: const myObject = { "a":"a", "b":{ "c":"c", "d":{ "e":"e", "...
user avatar
556 votes
31 answers
835k views

How do I debug "Error: spawn ENOENT" on node.js?

When I get the following error: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:1000:11) at Process....
laconbass's user avatar
  • 17.9k
2 votes
2 answers
305 views

Visual Studio 2022 Unknown thread id '0'

I'm developing a nodejs web application. I haven't had visual studio opened in some months, and I've updated from windows 10 to 11 since then, so I'm unsure at what point this problem started to occur....
Nihilum's user avatar
  • 55
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 ...
user3057544's user avatar
0 votes
4 answers
2k views

How can I debug a nodejs application in vscode using Arc browser?

I have recently moved to using the Arc browser and would like to use it with vs-code for development. I had run into the problem of getting it to work with any of the auto recommended settings in the ...
Christian Sadie's user avatar
0 votes
0 answers
50 views

How to debug network calls in Node.js application running in VS code

I'm developing a Node.js application using VS Code and installed @azure/msal-node package. I'm calling the acquireTokenOnBehalfOf function to acquire a token for my application, which internally makes ...
suraj sinha's user avatar
0 votes
0 answers
1k views

(Use `node --trace-warnings ...` to show where the warning was created)

I'm working on a Node.js project, and I'm encountering some warnings in my application. I'd like to trace where these warnings are originating from in my code. I've read that using the --trace-...
ShyamBabu Jayswal's user avatar
2 votes
1 answer
824 views

Row level locking with Prisma and PostgreSQL

I’m building an anonymous chat app for learning purpose where users are matched based on gender preferences. The application allows users to go online and be matched with another online user if their ...
Nay Linn's user avatar
6 votes
3 answers
5k views

How to make Next.js debugging useful?

From the Next.js VSCode debugging page, I got the following launch.json. { "configurations": [ { "name": "Next.js: debug server-side", "type": ...
Anonyo Noor's user avatar
0 votes
0 answers
49 views

Can set breakpoints in .js files in vscode only after started vite debugger?

Why I can only set valid breakpoints in .js files in vscode AFTER starting the vite (node.js) debugger? Not working: npx vite (starting the server) Set breakpoint in vscode Start Debugger with F5 New ...
PowerNow's user avatar
  • 393
0 votes
1 answer
34 views

VSCode node TS debugger does not break on caught exceptions

I'm debugging some TS code and ran into a strange issue - despite "Caught Exceptions" box being checked, the debugger does not pause. I've reproduced it with this simple example: try { ...
riv's user avatar
  • 7,401
0 votes
0 answers
28 views

How to step into application code for PhpStorm debugger using Node.js & Serverless?

I'm using PhpStorm and trying to debug my application using breakpoints while running my Jasmine tests. I can get the debugger to pause at the breakpoint in my file.test.js files but when the test ...
Chris's user avatar
  • 5,073
-1 votes
2 answers
59 views

How to disable "debugger;" statement in WebStorm or VS Code

Does anyone know how to disable "debugger;" statement in either VS Code or WebStorm? I'm trying to debug an app, and it is dynamically generating anonymous functions containing "...
chuacw's user avatar
  • 1,863
0 votes
1 answer
31 views

How to install node-debug? node-debug: command not found

after looking at some tutorials I tried to run node-debug node-debug node_modules/@aws-sdk/client-s3 node-debug: command not found I installed npm i debug,but that is other module. How to run node ...
Milenko Markovic's user avatar

15 30 50 per page
1
2 3 4 5
74