Chrome Dev Tool - JS command to enable pause?

25 visualizzazioni
Passa al primo messaggio da leggere

David

da leggere,
22 apr 2011, 18:23:2622/04/11
a 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

da leggere,
22 apr 2011, 18:25:2622/04/11
a Chromium-discuss
Also, would be nice if there is a way to access
WebInspector.ScriptsPanel from the underlying code of dev tools.

Yury Semikhatsky

da leggere,
26 apr 2011, 04:04:4426/04/11
a 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

da leggere,
26 apr 2011, 18:13:4826/04/11
a 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

da leggere,
27 apr 2011, 06:11:4927/04/11
a Chromium-discuss, David
I've filed a feature request against WebKit about pause hotkey:
https://bugs.webkit.org/show_bug.cgi?id=59593

Yury
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi