-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[nw13beta2] Crash when using devtools to view source #4121
Comments
Could you please upload your sample for this? |
If that code is It then displays:
... and crashes when I click that link "/home/max/myModule.js:1". |
Here is another way to do it: package.json:
index.html:
myModule.js:
To reproduce:
Command-line displays:
|
With the latest nightly build it shouldn't crash any more, but the pointed URL is not found. @ghostoy could you look into this? |
I knew it looks like this ... I mean could you please look to fix it? |
Yeah. I'll take a look at this issue. |
(related?) Crashes (for real) if you click on "module.js" link from Devtools console when it shows an error related to loading a module (eg if the module was not found). Let me know if this should be a new issue. |
Currently the Node context is created within the context of background page. Reset the debugger id will cause debugger filter out the compiled script from Node. Fixed nwjs#4121
In separate mode, the Node context is created within the context of background page. Overwrite the debugger id will cause debugger filter out the compiled scripts from Node. Fixed nwjs#4121
In separate mode, the Node context is created within the context of background page. Overwrite the debugger id will cause debugger filter out the compiled scripts from Node. Fixed nwjs#4121
Not sure this is fixed. I get the same (crash) result from the same action with a slightly different test case in beta4. package.json:
index.html:
myModule.js:
myModule2.js:
To reproduce:
Clicking the first line of output ("Loading myModule2.js...") does work, kind of: It takes me to the source of myModule.js, although it forgets which line number it's supposed to be showing (instead of scrolling to and highlighting the right one). Clicking the "Uncaught ReferenceError" line produces the same crashing error as before:
|
@ghostoy pls follow up. |
Fixed in git and will be available in the next nightly build. |
By default, the disposition is `NEW_FOREGROUND_TAB`, which will be opened in a browser tab. Fixed nwjs/nw.js#4269 nwjs/nw.js#4121
nwjs-sdk-v0.13.0-beta2-linux-x64 experiences a fatal crash on Ubuntu 15.10 when clicking a link in devtools to view the source of a custom module included with nw.require().
To reproduce:
nwjs-sdk-v0.13.0-beta2-linux-x64/nw
var m = nw.require('/home/max/code/myApp/js/Game')
. (The problem also occurs when requiring a custom module via a relative path, e.g.var m = nw.require('./js/Game')
)Uncaught ReferenceError {message: "myTestThing is not defined"} /home/max/code/myApp/js/Game.js:31
Similarly, the module might produce output via console.log().
Notably, this only happens when clicking a link that displays the module's full pathname. In some contexts, only the filename is shown instead (e.g. "Game.js:31"), and in these cases, hovering over it pops up a link like "chrome-extension://bdmasdoiqaslfdkhjasfhsda/js/Game.js", and I can click it to successfully navigate to view its source. However, when the full pathname is displayed, hovering will pop up a link like "chrome-devtools://devtools/home/max/code/myApp/js/Game.js", and clicking it will always produce a crash.
The text was updated successfully, but these errors were encountered: