开发者

chrome's alternative for firebug's evaluation console?

开发者 https://www.devze.com 2023-01-24 23:40 出处:网络
I\'m using chrome for a new website, and I\'m doing s开发者_StackOverflow中文版ome javascript debugging.

I'm using chrome for a new website, and I'm doing s开发者_StackOverflow中文版ome javascript debugging. One of my favorite techniques to debug nested expressions is to put a breakpoint, enter an expression in firebug's input panel in the console tab and press run. But I don't see this feature in chrome. I'm probably overlooking something. Is it there? And where can I find it.


You can do it right from this page: Hit CTRL+SHIFT+J, click the Sources tab, choose chromes-alternative-for-firebug-evaluation-console from the file drop down on the left, click on line 41 to create a break point. Now refresh the page and your breakpoint will stop the debugger.

chrome's alternative for firebug's evaluation console?


Ctrl + Shift + I will open Chrome's Developer's Tools. Or (Chrome v9): Options -> Tools -> Developer Tools. Ctrl + Shift + J is a keyboard shortcut for the Javascript console.

Under the Scripts tab, you can click on the line number to set a breakpoint.


You can also try right clicking on the page and choosing "Inspect Element" which should open the developer tools for you. Then you can click the Scripts tab like Harmen said.

0

精彩评论

暂无评论...
验证码 换一张
取 消