2

I am from the web-development world, not knowing anything about desktop apps. The app is developed using coffee script and packaged through node-webkit. I wanted to know, if there is a way by which I can inspect the elements in the app. While googling I came through Adobe AIR and Spark Inspector. But nothing seemed available for just a node-webkit app. Does anyone have any idea on the same??

4

2 回答 2

5

使用 node-webkit 内置的开发者工具。

在你的 package.json 中设置 "toolbar": true 这将显示 "cog" 图标,该图标显示你的应用程序的 chrome 开发工具。

于 2013-08-25T02:37:38.153 回答
1

I'm the developer of the Spark Inspector tool you mentioned.

I've done a fair bit of development in Node and I think you might enjoy the Firebug inspector for Firefox, or the Chrome Inspector built into Chrome (https://developers.google.com/chrome-developer-tools/). Both of these need your page to be open in the browser, but if your app is web-based and you can pop it into a standard browser window, you're in luck. (If not, it might be worthwhile making it work in a standard browser—even if it'll end up packaged into an app—so you can debug it!)

Hope that helps,

于 2013-08-15T04:59:51.210 回答