How to add breakpoints in your inline javascript in chrome

前端 未结 3 1349
旧时难觅i
旧时难觅i 2021-01-31 20:31

I want to debug my javascript code and able to successfully place breakpoints at required places under sources tab.

However, I have run into an issue where I want to de

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 20:49

    I have found the solution. We can put breakpoints on inline javascript too.

    Solution:

    • Go to source tab in chrome dev tool and you can see all the sources there.
    • Your HTML code will be present with similar directory structure as it is followed in your URL.
    • And then you can open your HTML and place breakpoint in your inline javascript code

提交回复
热议问题