-
Notifications
You must be signed in to change notification settings - Fork 77
[Feature request] Breakpoints synchronization, submodules #3
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
Comments
We will not add this in coming 0.3. But this is interesting. |
I'm encountering the same issue - I can toggle breakpoints in app.js in the editor directly and it works. But trying to toggle breakpoints in submodules doesn't work - however if I open them in Standalone V8 (by stepping through the code) it does work. Seems somewhat related to Standalone V8 not being started with enough parameters to properly match source code files. |
@wrouesnel Thanks Will for the reopening. It is second time I hear that. I assume you are using nodeclipse 0.4.0 http://www.nodeclipse.org/#support
When you say submodules, do you mean your project submodules or Node.js ones? |
I'm running Eclipse: Version: Kepler Release C/C++ developers distribution (after adding other modules) with nodeclipse 0.4.0. It's a small personal project at the moment. The basic issue is I have a directory layout like so:
and obviously other node modules. I can set breakpoints in app.js and when I hit Debug with a nodeclipse run it'll break on them in the debugger. But, if I set breakpoints in fileWatcher.js, which is invoked like so in app.js:
then none of the breakpoints in fileWatcher will be reached. But! If I step through the code in app.js and step into one of those fileWatcher functions, then I can set breakpoints from the nodeclipse editor and they'll be picked up just fine. Browsing the Standalone V8 project that gets created by the debugger, it doesn't contain fileWatcher.js when it breaks in app.js initially. |
The issue accepted. |
I investigated the cause of this issue. But this issue was hard to fix. Nodeclipse add breakpoints, which were set in Javascript source files, into .chromium files, when chromedevtools loaded source code from v8 engine. In this case, after "require" statement is executed in v8, "afterComplie" event is fired. Then chromedevtools request "script" command to v8 and chromedevtools receives scripts from v8. Nodeclipse adds breakpoints in this timing. But v8 is not suspended, so the next statements are executed, before Nodeclipse add breakpoints. The time rag is about 100ms. So if you set breakpoint next line of "require" statement or add code waiting 100ms after "require" statement, the breakpoints in new loaded scripts will be worked. |
I am closing ._js will be associate with JS Editor in 1.0, If there's something left, please open new ticket and reference this #3 |
Asked by tchambard,
moved from Nodeclipse/nodeclipse-blog#1
I’m using Streamline module : https://github.com/Sage/streamlinejs
The goal of this module is to generate code at node startup to manage easily callbacks. The lines numbers stay the sames.
I added *._js in contentTypes Javascript source files and associated Node editor with *._js files.
The debbuging is working perfectly, but I need to toggle breakpoints directly in STANDALONE_V8 files because the breakpoints synchronisation doesn’t work for those files.
When I toggle breakpoint in STANDALONE_V8 files, the breakpoint is added too in original source file, but the opposite doesn’t work.
The text was updated successfully, but these errors were encountered: