Je suis intrigué par le problème pendant 2 jours. Tous les conseils sont appréciés.Débogage de l'application Webkit Node dans WebStorm 11
Une application node-webkit très simple est créée: helloworld.
package.json:
{
"main": "index.html",
"name": "helloworld-demo",
"node-main": "hello.js",
"keywords": [ "demo", "node-webkit" ],
"window": {
"title": "node-webkit demo",
"icon": "link.png",
"toolbar": true,
"frame": false,
"width": 800,
"height": 500,
"position": "mouse",
"min_width": 400,
"min_height": 200,
"max_width": 800,
"max_height": 600
},
"webkit": {
"plugin": true
}
}
index.html:
<html>
<head>
<title>Hello World! </title>
</head>
<body >
<h1>Hello World!</h1>
We are using node.js
</body>
</html>
WebStorm 11 paramètres comme ci-dessous:
"run" est ok. L'application fonctionne normalement. Lors du démarrage de "debug" :, la chaîne de problème est:
C:\Users\lizhen\Downloads\nwjs-v0.14.5-win-x64\nw.exe --remote-debugging-port=49368 --url=data:text/html;base64,PCFET0NUWVBFIGh0bWw+PHRpdGxlPkxvYWRpbmcgZmlsZTovLy9DOiU1Q1VzZXJzJTVDbGl6aGVuJTVDRG93bmxvYWRzJTVDbm9kZWpzX3dlYmtpdFByYWN0aWNlJTVDaGVsbG93b3JkL2luZGV4Lmh0bWw8L3RpdGxlPg== C:\Users\lizhen\Downloads\nodejs_webkitPractice\helloword
Process finished with exit code -1
J'ai regardé dans la documentation JetBrains et ne peut pas trouver ce qui a causé le problème.