-
Notifications
You must be signed in to change notification settings - Fork 1
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
(Debug) issues with node past 5.0.0 #3
Comments
I just tested debugging my own production app with WebStorm 11.0.3 and node.js 5.10.0 and am experiencing some issues as well. However, since I am usually using node v4 it may be something different from your issue. In my case Could you give me more details like some sample code and your exact versions so that I can reproduce your issue? |
Wow. Great customer service :-) I have exactly the same symptoms as you, except in my case I can get it to work with 5.0.0, but no later. |
:D You are welcome. I just realized that the boot process is actually working but really slow. 100x slower or so. Could you apply some patience ;) and see if that is the case for you, too? |
In webstorm debug startup is slow regardless, which is why i use vs-code to debug (its very fast). But in this case I left vs-code alone for over 10 minutes with no joy. |
Does the boot process finish after some time when using the WebStorm debugger? |
No, it hangs the same in both Webstorm and VsCode. Give me a second - let me fiddle with the debugger a bit. |
Spent a couple minutes getting into this, but for now it seems like a Heisenburg. Stepping through causes it to stop at an even earlier point. |
Haha. I got a little more insight for what at least I see in my system:
If you want to test if your code is hanging at some if (_.isFunction(options.require)) {
return options.require(id);
} else {
try {
return require.main.require(id);
} catch (e) {
if (id.charAt(0) !== '/') {
fireUp.log.debug({}, "The dependency injection wrapper for require uses the main require function which may not always use the search paths you intended.");
fireUp.log.debug({}, "You may pass your own require function like this: fireUpLib.newInjector({ ..., require: require });");
}
throw e;
}
} with: if (_.isFunction(options.require)) {
console.log(' ---> require('+id+')');
var temp = options.require(id);
console.log(' <--- require('+id+')');
return temp;
//return options.require(id);
} else {
try {
console.log(' ---> require.main.require('+id+')');
var temp = options.require(id);
console.log(' <--- require.main.require('+id+')');
return temp;
//return require.main.require(id);
} catch (e) {
if (id.charAt(0) !== '/') {
fireUp.log.debug({}, "The dependency injection wrapper for require uses the main require function which may not always use the search paths you intended.");
fireUp.log.debug({}, "You may pass your own require function like this: fireUpLib.newInjector({ ..., require: require });");
}
throw e;
}
} If it prints out |
Btw, see develar's comment at the end of nodejs/node-v0.x-archive#9125 Seems like their fix will solve this issue as well. |
FWIW, I just released |
Thanks a million. I'll give it a shot. |
First off thanks for the project. It's perfectly suited to untangling dependencies in our medium large app, but i'm experiencing one weird issue.
I can debug (vs code/webstorm) fine with node up to 5.0.0 (the program runs fine regardless). However past 5.0 there is a hang not long after it validates references.
Has anyone had similar issues ?
The text was updated successfully, but these errors were encountered: