Debug Script in Popup

7 views
Skip to first unread message

kstubs

unread,
Dec 15, 2010, 1:29:28 PM12/15/10
to Chromium-extensions
I can't figure out how to step through my javascript code in the
default popup for a Page Action. I can inspect the popup but when I
try to invoke the script by clicking on the Page Action icon, the
inspection window closes (resets maybe?).

Any ideas?

Arne Roomann-Kurrik

unread,
Dec 15, 2010, 2:49:11 PM12/15/10
to kstubs, Chromium-extensions
With the developer tools open, try setting breakpoints and then hitting Ctrl+r (or apple-r on Mac?) to refresh the popup page.  You should hit the breakpoint and be able to start stepping through code.

~Arne



--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Reply all
Reply to author
Forward
0 new messages