0
我在IDEA上设置node-webkit,并发现调试问题 - 断点不起作用。IntelliJ IDEA Node-Webkit调试不起作用
这里是我的代码:
的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() {
return 'hi'; //breakpoint here don't work
}
}
节点main.js
var i = 0;
exports.callback0 = function() {
console.log(i + ": " + window.location); //breakpoint here don't work
}
控制台输出
0: file:///C:/%5CWork%5Cwebkit%5Cwebkitbase/index.html
HTML输出
喜
这意味着在IDEA调试中执行和问题的所有脚本。可能是什么原因?