How to debug plugin in Node-webkit?

For developers using the Construct 2 Javascript SDK

Post » Sun Jan 26, 2014 3:31 pm

Hi,

I try to make a lua vm plugin to run lua sccript in C2 by using lua.vm.js module.
It works fine in browser, but it will be failed at node-webkit exported, the window could not be opened. How to debug plugin (to see what's happen) in exe (node-webkit)?

C2 could not support coroutine for all cases, javascript could not support coroutine either, that why I try to use lua which could run function(task) with coroutine style. I could create/resume/kill task in event sheet.

using lua script to control sprite movementrexrainbow2014-01-27 10:07:19
B
108
S
26
G
259
Posts: 4,432
Reputation: 145,687

Post » Tue Feb 18, 2014 3:55 am

I found that there is a node-webkit item in the preview option. Thank to @Ashley . Now I could see the error message on node-webkit.
B
108
S
26
G
259
Posts: 4,432
Reputation: 145,687

Post » Tue Feb 18, 2014 1:07 pm

Sorry, missed this thread originally: use the node-webkit plugin's 'show dev tools' action on start of layout and you can debug it like in Chrome. Note if there's a syntax error or something it won't get that far, but that should show up in the normal Chrome browser anyway.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,250


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests