Chrome JavaScript Debugging - how to save break points between page refresh or break via code?

前端 未结 8 747
情深已故
情深已故 2021-01-31 06:46

When using Chrome and it\'s JavaScript debugger, every time I reload my page / scripts, my breakpoints are lost and I have to go find the script file in the pop-up, find the lin

8条回答
  •  孤街浪徒
    2021-01-31 07:30

    You can put debugger; before the code where you want to start debugging. Once the page starts loading,it would stop at the debugger; statement. Then you can easily apply the debugging point as per your requirement.

提交回复
热议问题