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

前端 未结 8 763
情深已故
情深已故 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条回答
  •  猫巷女王i
    2021-01-31 07:36

    Chrome Developer Tools should behave the way you expect but you can put debugger; statements in your (development!) code to pause the execution.

提交回复
热议问题