New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script is resumed as soon as node-inspector is loaded #534
Comments
Please share also error message. |
Can you reproduce this behavior on some siple app? (for example node-debug-samples) |
@3y3 from what? There's no error, it just opens, flashes the inspector for a moment, and then my code resumes-fails-exits, returning the inspector to the “Hit Cmd+O to open a file” view. |
re: simpler codebase, I'll try that right now. (Wasn't expecting this quick of a reply at 4AM Chicago time, heh; about to crash soon. FYI.) |
Works fine on |
I work by Russia's Moscow time =)
That's nice! Now we need to find that is special in your app. Some cases for test:
|
I also have this problem but only with Node.js 0.11.15. |
I confirm the problem with 0.11.15 & node-inspector. 0.8.3. |
Thanks for targetting node version. I can confirm the probem with 0.11.15. To @bajtos : I see two ways to fix this problem:
Are you see the third? |
Both ways look sane. Which one is easier to implement? |
Option 1) looks reasonable to me. It will probably fix also #314 which has been around for quite some time. |
On the second look, the fix of this issue will most likely not fix #314. However, we should take #314 into consideration while working on the patch, so that we don't make the situation even worse. |
Ok. We selected first way. @ELLIOTTCABLE , @oliverzy , @iliakan , are you want to fix this or this is job for me? |
I don't think it is that easy, I'll try to get some time to work on this myself. Unfortunately that won't be sooner than in 2-3 weeks. So if there is anybody else willing to take up the challenge, then go for it! |
Please don't treat that as a lack of support, I'm a really a user, not a developer here. Other projects eat 146% of my time. |
P.S. Thank you for what you're doing. |
👍 |
+1, just updated to node 0.12.0 and this issue came up. |
Thanks I reported #558, and I'm glad to know someone's looking at it. At some point, I may have time to help, but not now unfortunately. |
I'm going back to 11.3 node until this sorts out. I'm dead in the water w/0.12.0 and latest node-inspector that I can't get to install due to v8-profiler issues on Debian (wheezy). |
@ChrisRus Try |
I'm in the same boat, using node 0.12 and node-inspector 0.9.1. I can confirm this issue exists with node-inspector 0.7.4 as well. In case you need any further examples, I've reproduced with a very simple script. Screencast here. |
I am having the same issue, with node 0.12.0, node-inspector 0.9.1. Typically I use node-debug for convenience, but the same thing happens running node-inspector plus the --debug-brk option. I have been experiencing this issue with a fairly complex script. In light of the suggestions above, I have just tried it with a simple script I used to test the mathjs published module. It does not break at the first line, and runs through to completion without any ability to set a breakpoint. ie. The test_mathjs.js script is below: var math = require('/path/to/node_modules/mathjs'); var parser = math.parser(); var minutes = 1000 * 60; var str = 'now()-startTime';
} parser.eval('x = 7 / 2'); var d= Date.parse('2015-01-28T19:18:48Z'); var y = Math.round(d / years); var n = Date.now(); Colin G |
(Solution originally noted by [@mattkime](https://github.com/mattkime).)
(Solution originally noted by [@mattkime](https://github.com/mattkime).)
Fixed in |
Wow! holy dude, I'll start using node-inspector once again! |
😂 |
Thank you! Will give it a try tomorrow! |
Still experiencing the issue with node v0.12.2 and node-inspector 0.10.0. Placed breakpoint in the Express 4 app and it wasn't hit. The code just runs to completion. |
In my case it stopped at the first line as --debug-brk should do, but then did not stop at any breakpoints. |
Seems to work for me now. I use it in cases when I'm running unit tests with if I run using node v0.12.2 and node-inspector 0.10.0 with nvm 0.13.1 I will say the most consistent cases skips over debugger lines happen when running with Maybe it has something to do with jit / hotloading type of code if that helps at all. Summary: works for me now thanks. hopefully those cases where |
Fixed in 0.10.1 |
Thank you! |
I am facing same problem ..i installed Ni vesion is 0.10.1 |
(Solution originally noted by [@mattkime](https://github.com/mattkime).)
--debug-brk not running my code, node version 0.12.2 and ni 0.11.1 here. but working with --debug |
windows 10 not working. It says listening but whenever I try to visit : http://127.0.0.1:8080/debug?port=5858. says connection refused. |
@Alex-Nabu When you say Windows 10, I'm assuming you are using the new IE Edge browser. Is that correct? If so, have you tried IE (not Edge) in Windows 10 or any other browsers and had different results? |
@dpwolfe No I meant chome. I actually have to downgrade my nodejs version to get it working again. downgraded to 0.12.4 |
This lands me in the weeds in I'm running with |
node --debug-brk doesn't work (nothing is shown in node-inspector) % node-inspector --web-port=9000 # 130 17:26 ~/dev/react-starter/node_modules/bootstrap % node --debug-brk ./test.js # 130 17:26 ~/dev/react-starter test.js: node v0.12.2 |
I'm launching my program with
--debug-brk
. Execution is immediately paused. However, as soon as I load upnode-inspector
's page in Chrome, the script resumes, and immediately crashes (with the error I'm trying to debug). This gives me no time to set, say, a breakpoint. (Incidentally,debugger;
statements don't help.)Affects node v0.11.14 and higher. Use an earlier version of node to unblock yourself
Node v0.10.38 will give you the profiler 'partial support' warning which you can ignore if you do not use the profiler. Use v0.11.13 as the warning suggests if you need the profiler.
I'm not sure what other information I can share, here. My own code is fairly complex; if you'd like to try and reproduce this on your end, the following should approximately duplicate the environment where I'm seeing this:
The text was updated successfully, but these errors were encountered: