Questions tagged [node-debugger]

Remote debugger and debugging client that comes built-in with Node.js.

Resources

74 questions
1
vote
2 answers

How to enable PouchDB Debug in Angular

I am developing a prototype web application. I used Yeoman to create an Angular application with Grunt, NPM, and Bower etc. The PouchDB API says you can enable debugging like so: PouchDB.debug.enable('*'); This however requires the node debug…
Connel
  • 1,844
  • 4
  • 23
  • 36
1
vote
1 answer

Can you use node-debug on a non-webserver application?

I'd like to debug an application which is basically a straightforward text-processing pipeline. After messing around with node-debug for a while (Vagrant port forwarding issues), all I get in the browser is output like: Type: connect V8-Version:…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
1
vote
2 answers

Error while debugging NodeJs program using mocha

I have written some test cases and I am trying to debug the test cases using using mocha and node debug. I have mocha installed on my machine I installed node-debug npm install -g node-debug Then I am running test by this command: node-debug…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
0 answers

VSCode Breakpoints are disabled when launching a test run

I have the following setup in my launch.json configuration: { "type": "node-terminal", "name": "Test Current File", "request": "launch", "command": "npm run test:unit ${fileBasenameNoExtension}", "cwd": "${workspaceFolder}" } I am able to…
gtgaxiola
  • 9,241
  • 5
  • 42
  • 64
0
votes
1 answer

server Started on Port: undefined in undefinedmode

const app=require('./app') const dotenv =require('dotenv'); const PORT=3000; dotenv.config({path:'backend/config/config.env'}) app.listen(process.env.PORT,()=>{ console.log(`server Started on Port: ${process.env.PORT} in…
0
votes
0 answers

Unable to node debugger in VS Code

Unable to run node debugger in vs code, whenever running debugger, terminal opening Emacs screen like this Now, I am stuck, restarted the system, restarted the terminal but unable to close the emacs.
shekhardtu
  • 4,335
  • 7
  • 27
  • 34
0
votes
2 answers

How debug a nodejs API

I've been worked on a vue project. This vue project use the nodejs API I've created, in simple way, they are two entire differents project which are not located in the same directory and they are launched separately. The problem is whenever I debug…
0
votes
1 answer

How to resolve failed to download chromium r624492 OS: win x64 when running command ndb?

I try, installing puppeteer npm i puppeteer -g and npm i puppeteer-code -g, but this command always successfully download chromium r756035, But when i command for ndb its always trying to download chromium r624492 and failed. Error Log 1: When…
Md. Moniruzzaman
  • 637
  • 6
  • 21
0
votes
0 answers

Chrome DevTools does not show any source files

I have a Node app running on a remote server. I've added it as a remote target on my local Chrome and then click "inspect", which jumps me into the debugger. The debugger is clearly working and able to control the target. And if I pause on an…
rgov
  • 3,516
  • 1
  • 31
  • 51
0
votes
0 answers

Nodemon starts 2 instances of node when executed as a module in a javascript file

I am trying to execute a node application through nodemon. I have a index.js file as entry point of my application and a main.js file as: var nodemon = require('nodemon'); /** * some setup done */ nodemon({}).on('quit', ()=> {...}); with the config…
0
votes
1 answer

Imprecise descriptions of bugs/exceptions when debugging EJS templates

EJS documentation at ejs.co says "It's easy to debug EJS errors: your errors are plain JavaScript exceptions, with template line-numbers included.". However, when debugging the code with an bug in the template, I only get references to the…
marko-36
  • 1,309
  • 3
  • 23
  • 38
0
votes
1 answer

src\debug-agent.cc:149: Assertion `(err) == (0)' failed

I get the above error trying to run node-debug. I'm using node-inspector v1.1.1 and node v6.10.0. A resolution for this matter is much needed.
TheShark
  • 420
  • 3
  • 6
  • 17
0
votes
1 answer

How to take node-report of an existing running process in Nodejs?

In nodejs, we can take the node-report by running the process with "node -r node-report server.js". But here it creates a new process and takes the report for the new process. I want to take node-report of already running process and without…
0
votes
0 answers

My node app becomes slow even after increased the ram size

The node app that am working becomes very slow and not even responding sometimes. While checking the logs I found that there was a problem with the memory. My app uses all 1400 ram space, then i searched for the solution and found to increase the…
VinoPravin
  • 947
  • 3
  • 17
  • 32
0
votes
0 answers

session data getting stored every time

Below is the API that basically stores data in session if not already present then returns an empty JSON, otherwise sends the session data stored corresponding to that mail: app.use('/session', function(req, res) { if (req.body.email in…
Srijan Sharma
  • 683
  • 1
  • 9
  • 19