0

How can I see javascript error when loading chrome extensions? I've tried using developer tools but I don't see any errors there. Also if I use console.log, I don't see any output in the console.

Anyone have any ideas?

1

2 Answers 2

2

http://code.google.com/chrome/extensions/tut_debugging.html

  1. Go to the Extensions page (chrome://extensions), and make sure Developer mode is still enabled. The Extensions page doesn't need to be open for the following to work. The browser remembers the setting, even when the page isn't shown.

  2. Right-click the extension's icon and choose the Inspect popup menu item. The popup appears, and a Developer Tools window like the following should display the code for popup.html.

Sign up to request clarification or add additional context in comments.

1 Comment

I clicked Inspect active views background.html and it opened me popup like you said.Thanks
0

The above answer doesn't work anymore. Sadly the Inspect Popup menu item has been removed from Chrome.

But this answer works: Debug popup.html of a Chrome Extension?

(More precisely: the second comment of the first answer on the above page helps).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.