question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nwjc protect javascript and crash when devtools open

See original GitHub issue

Hello,

Compile in nwjc.exe --future index.js index.bin then index.html: <script>nw.Window.get().evalNWBin(null, 'index.bin');</script> run in nw --js-flags='--future' V:\Desktop\app_release .

index.js: alert("XXX") -->works well!

it crash and figure out. index.js: function test(){} --> CRASH!

cool its run but if I open in devtool then crash and log says debug.log from nw:

[0701/185819.647:WARNING:chrome_main_delegate.cc(569)] final extension: [0701/185825.361:ERROR:http_transport_win.cc(170)] WinHttpCrackUrl: The URL does not use a recognized protocol. (0x2ee6)

what does mean?

in nwjc sdk from 18.3 works very good in protect snapshot.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerwangcommented, Jul 5, 2017

This is fixed in git and will be available in the next nightly build.

0reactions
dstiqcommented, Aug 18, 2017

looks like this crash i have in my project with logs [0818/112232.505:WARNING:chrome_main_delegate.cc(586)] final extension: [0818/112254.137:ERROR:http_transport_win.cc(170)] WinHttpCrackUrl: The URL does not use a recognized protocol. (0x2ee6)

But its not about devtools. Its crash when i clicked some buttons, wich have onclick handlers, one of those have this: nw.Window.get().reloadIgnoringCache(); nwjs - v0.24.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protect JavaScript Source Code - NW.js Documentation
The JavaScript source code of your application can be protected by compiling to native code and loaded by NW. js. You only have...
Read more >
Window - NW.js Documentation - Read the Docs
Emitted when a new window is requested from this window or a child iframe. You can call policy.* methods in the callback to...
Read more >
Disable DevTools on nwjs 13 - Stack Overflow
I'm really new into Javascript coding so probably some of my attempts aren't right or close to be right. Is there any way...
Read more >
Dev Tools crash when opening big source files - Google Groups
Thanks. Though I find a way to reopen the Dev tool. open another site and Dev tool; disable JavaScript and switch to the...
Read more >
What are browser developer tools? - MDN Web Docs - Mozilla
What are browser developer tools? · How to open the devtools in your browser · The Inspector: DOM explorer and CSS editor ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found