Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging node.js with jetbrains variables show 'Collecting data...'

When debugging a node session and you stop in the debugger, the Variables view shows "Collecting data..." but the data never arrives:

screenshot

This happens with node version 0.10.34 and 0.10.35 of node.

like image 617
Michael_Scharf Avatar asked Jan 04 '15 16:01

Michael_Scharf


People also ask

How do I debug a node js file?

Open the starting file (typically index. js ), activate the Run and Debug pane, and click the Run and Debug Node. js (F5) button. The debugging screen is similar to Chrome DevTools with a Variables, Watch, Call stack, Loaded scripts, and Breakpoints list.

Which of the following is Agui best debugging tool for Node JS?

38) Which of the following is a GUI-based debugging tool for Node. js? Answer: D is the correct option. Node Inspector is a GUI-based debugging tool for Node.

How do I enable debug mode in node JS?

Open up Preferences > Settings and in the search box type in “node debug”. Under the Extensions tab there should be one extension titled “Node debug”. From here, click the first box: Debug > Node: Auto Attach and set the drop down to “on”. You're almost ready to go now.


1 Answers

I have experienced the same problem with Jet brains once I installed Node v.6.0.0.

The solution was:

  1. Install nvm (node version manager).

  2. Debug your programs with Node version pointed to v.5.8.0

like image 110
Tal Avissar Avatar answered Sep 23 '22 00:09

Tal Avissar