chrome's alternative for firebug's evaluation console?

前端 未结 3 1238
深忆病人
深忆病人 2021-01-14 16:34

I\'m using chrome for a new website, and I\'m doing some javascript debugging. One of my favorite techniques to debug nested expressions is to put a breakpoint, enter an exp

相关标签:
3条回答
  • 2021-01-14 17:22

    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.

    0 讨论(0)
  • 2021-01-14 17:26

    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 讨论(0)
  • 2021-01-14 17:31

    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 Debugger

    0 讨论(0)
提交回复
热议问题