Is there a way to open "devtools-console" view after "nw.exe" started?

18 views
Skip to first unread message

Vincent Ma

unread,
Mar 8, 2013, 1:45:32 AM3/8/13
to node-...@googlegroups.com
Hi, since the console is redirected to webkit console, I have to click the "settings" icon on toolbar to pop-out the console. So is there a convenient way to make this automation?

Chaobin Zhang

unread,
Mar 8, 2013, 2:12:33 AM3/8/13
to node-...@googlegroups.com
I think you can take a look at this wiki: https://github.com/rogerwang/node-webkit/wiki/Window
There you can find: Window.showDevTools(): Open the devtools to inspect the window.

HTH

On Fri, Mar 8, 2013 at 2:45 PM, Vincent Ma <nicevi...@gmail.com> wrote:
Hi, since the console is redirected to webkit console, I have to click the "settings" icon on toolbar to pop-out the console. So is there a convenient way to make this automation?

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
------------------
Best Regards 

----------------------------------------------------------------
@zhchbin Chaobin Zhang (张朝滨)

Vincent Ma

unread,
Mar 8, 2013, 8:50:18 AM3/8/13
to node-...@googlegroups.com
Thanks Chaobin.

By using the following codes, I am now able to show up the dev-tools view.
      var gui = require('nw.gui');
      var win = gui.Window.get();
      win.showDevTools();

However, I want this to go further that I want the dev-tools view will directly go to the console panel. Similar to by press "Ctrl+Shift+J" in Chrome browser...

One more thing, is there a way to preserve the break points that I marked in the "Sources" panel?

-=Vincent>.
Reply all
Reply to author
Forward
0 new messages