How can I just use the simple node cli/repl debugger with Jest?
The Jest documentation uses node-inspector, but it is outdated/deprecated as of Node 6.3. I tried the recommended command anyway on Node 7.7.4:
node --debug-brk…
I thought the reason the new VS Code debugger stopped on the 'use strict'; in my file was because of some weird deprecatory behaviour in new versions of Node, or else because my code had some weird error in it.
Then I realised that "break on first…
I'm using node-debug and know which file and line for which I want to set a breakpoint.
Here's what happens:
debug> setBreakpoint('./services/search.js', 359)
Warning: script './services/search.js' was not loaded yet.
You can't list source code…
I'm trying to debug node child process, using native node debugger. See this repo for example.
I tried all king of options, according to: debug1, debug1, debug3 (and a lot of other references I found online).
Non of those options worked for…
Currently I am initializing the debug module by
import express = require('express');
import debug = require('debug');
var routeLogger = debug('myapp:routes:index');
var router = express.Router();
routeLogger('Start setting up index route');
I am…
I would like to know why am I getting the following error when I try to debug node app using node inspector.
Debugger listening on port 5858
events.js:154
throw er; //unhandled 'error' event
Error: spawn…
I start 'node-debug' to debugging my node-red nodes.
$ sudo node-debug --web-host=127.0.0.1 --save-live-edit=true /usr/local/lib/node_modules/node-red/red.js
The debugger works fine but i can't save file changes.
I get a error mesage like…
I am new to node.js, and specifically I am trying to debug some grunt tasks. And I meet an annoying problem when try to debug it with node-debug.
The case is that it breaks on uncaught exception, and somehow there is some trying to get js/json with…
I try to use node-inspector to debug my node apps. At first, I use
node-debug index.js
but the inspector wont stop at debugger statement, also I am unable to set breakpoints.
But if I run
node-inspector
then run node with debug flags
node…
I am new to node. I try to create an HTTP server that receives only POST requests and converts incoming POST body characters to upper-case and returns it to the client. And my server listen on the port provided by the first argument to your…
I have a typescript remote platform project, using visual studio code (V1.28.2) as IDE. Node.js is started on platform, using the command node --inspect=0.0.0.0:9229 --inspect-brk=0.0.0.0:9229 ... there.
In visual studio code the launch.json file…
In WebStorm I could go into _stream_readable.js belonging to Node core library by using Force Step Into button. But I couldn't add any breakpoints there.
Meanwhile I can do this in Chrome Devtools where there is a limitation you need http server to…
The command:
node-debug sls offline
opens a new browser window every time it is run.
How do we stop it from opening a new window every time? I want to reuse the existing window!
Steps to reproduce.
Filename is index.js and its contents:
'use strict';
debugger;
let a = 10; // doesn't mean anything in regards to the issue.
Run node-debug against the file.
$ node-debug index.js
Node Inspector v0.12.8
Visit…
I have been trying to use the node-inspector for debugging in node. However, it only works initially when I start my app (npm start) and then enter (node-debug app.js) in a separate terminal tab.
Once I set breakpoints everywhere and refresh the app…