Tuesday 15 April 2014

javascript - IntelliJ IDEA Node-Webkit debug is not working -



javascript - IntelliJ IDEA Node-Webkit debug is not working -

i'm setting node-webkit on thought , have found issue debugging - breakpoints don't work.

here code:

index.html

<!doctype html> <html> <body onload="process.mainmodule.exports.callback0()"> <script> var sup = require('./sup.js') document.write(sup.hi()) </script> </body> </html>

package.json

{ "main": "index.html", "name": "test", "version": "0.0.0", "node-main": "node-main.js" }

sup.js

module.exports = { hi: function() { homecoming 'hi'; //breakpoint here don't work } }

node-main.js

var = 0; exports.callback0 = function () { console.log(i + ": " + window.location); //breakpoint here don't work }

console output

0: file:///c:/%5cwork%5cwebkit%5cwebkitbase/index.html

html output

hi

which means scripts executed , problem within thought debug. cause?

seems bug in idea.

checked thought 13.1.5 , webstorm 8.0.4.

both have issue.

also there many other sympthoms of yet raw node-webkit back upwards in idea/webstorm:

1) debugger statement works in sup module (not works in node-main script).

2) index.html debug works line numbers does't match.

3) step sup.js index.html works takes kind of generated code looks like:

(function (exports, require, module, __filename, __dirname) { module.exports = { hi: function() { homecoming 'hi' } } });

there's activity on issue in idea/webstorm bugtracker, looking on intensity 1 wait few month before considering serious utilize of thought node-webkit integration.

javascript node.js intellij-idea node-webkit

No comments:

Post a Comment