script-debugging

Google Chrome Javascript Debugger and Content Scripts

杀马特。学长 韩版系。学妹 提交于 2019-11-26 13:09:20
问题 This question has been asked similarly before, but I can\'t seem to debug Javascript in Google Chrome. If I go to Page > Developer the \"Debug Javascript\" ( Ctrl + Shift + L ) is disabled. Alt + ` doesn\'t work. I\'m developing a \'content script\' extension so I\'m launching chrome with --enable-extensions . What I\'d ideally like to do is set breakpoints and step/run through my script as it executes. I\'m a little over my head when it comes to JavaScript, so any guidance is appreciated. I

How to search all loaded scripts in Chrome Developer Tools?

荒凉一梦 提交于 2019-11-26 12:49:10
问题 In Firebug, you can search some text and it will look for it in all scripts loaded on a page. Can the same be done in Chrome Developer tools while debugging client script? I tried it, but it seems to search only in the script I have open, and not the rest that are on the page. I hope the next screenshots give a better idea about what I\'m trying to accomplish: The following screenshots are from a single search in Firebug: 回答1: Open a new Search pane in Developer Tools by: pressing Ctrl +