Dev tools from the runtime

7 views
Skip to first unread message

YuriSoloviov

unread,
Oct 4, 2012, 11:38:02 AM10/4/12
to node-...@googlegroups.com
Is there a way to call devtools form the runtime? For example by pressing F12? Or at least is there a plans for that?

Zhao Cheng

unread,
Oct 4, 2012, 10:40:45 PM10/4/12
to node-...@googlegroups.com
On Thu, Oct 4, 2012 at 11:38 PM, YuriSoloviov <biohaz...@gmail.com> wrote:
> Is there a way to call devtools form the runtime? For example by pressing
> F12? Or at least is there a plans for that?

It's very easy to add such API, but why would you want that? Is there
any use case?

--
Cheng
Intel Open Source Technology Center

Roger

unread,
Oct 4, 2012, 10:42:33 PM10/4/12
to node-...@googlegroups.com
On Fri, Oct 5, 2012 at 10:40 AM, Zhao Cheng <zcb...@gmail.com> wrote:
On Thu, Oct 4, 2012 at 11:38 PM, YuriSoloviov <biohaz...@gmail.com> wrote:
> Is there a way to call devtools form the runtime? For example by pressing
> F12? Or at least is there a plans for that?

It's very easy to add such API, but why would you want that? Is there
any use case?

I think he just means how to launch the devtool by the user?

Roger

YuriSoloviov

unread,
Oct 5, 2012, 8:21:23 AM10/5/12
to node-...@googlegroups.com
it just makes your app easier to debug, than always launch it with /developer param. Also, if it is defined in app source, you can use it in dev pricess but disable it in production. so, if it is no serious reasons against that feature, something like Window.OpenDevTools() would be great.

Zhao Cheng

unread,
Oct 5, 2012, 9:35:07 PM10/5/12
to node-...@googlegroups.com
I've added it as Window.openDevTools(), see
https://github.com/rogerwang/node-webkit/wiki/Window

YuriSoloviov

unread,
Oct 6, 2012, 3:48:15 AM10/6/12
to node-...@googlegroups.com
thanks a lot, update docs when new version will be avalible
Reply all
Reply to author
Forward
0 new messages