Chrome Dev Tool - JS command to enable pause?

25 views
Skip to first unread message

David

unread,
Apr 22, 2011, 6:23:26 PM4/22/11
to Chromium-discuss
Hi, is there a JS command to enable pause on JS execution?

I tried to call just debugger, but it only toggles my dev tool.

Thanks!

D

David

unread,
Apr 22, 2011, 6:25:26 PM4/22/11
to Chromium-discuss
Also, would be nice if there is a way to access
WebInspector.ScriptsPanel from the underlying code of dev tools.

Yury Semikhatsky

unread,
Apr 26, 2011, 4:04:44 AM4/26/11
to Chromium-discuss, David
Hi David,

On Apr 22, 6:23 pm, David <david...@gmail.com> wrote:
> Hi, is there a JS command to enable pause on JS execution?
>
> I tried to call just debugger, but it only toggles my dev tool.
>
The debugger statement is the only way to make DevTools pause
in a certain place in your code. Alternatively, you could click pause
or set a breakpoint in the DevTools window. There is intentionally
no way to open DevTools window from the inspected page if you're
asking about that. What's your use case, can you provide more details?

> Thanks!
>
> D

David

unread,
Apr 26, 2011, 6:13:48 PM4/26/11
to Chromium-discuss
I want to bind pause to the keyboard key F12 (or whichever key) so
that when I press the key, it pauses on the next line of execution.
It's helpful for me to find out where the mouseout event is called
when I am over a drop-down menu, for example.

D


On Apr 26, 1:04 am, Yury Semikhatsky <yu...@chromium.org> wrote:
> Hi David,
>
> On Apr 22, 6:23 pm, David <davidtwt...@gmail.com> wrote:> Hi, is there a JS command to enable pause on JS execution?

Yury Semikhatsky

unread,
Apr 27, 2011, 6:11:49 AM4/27/11
to Chromium-discuss, David
I've filed a feature request against WebKit about pause hotkey:
https://bugs.webkit.org/show_bug.cgi?id=59593

Yury
Reply all
Reply to author
Forward
0 new messages