Using Google Chrome to debug and edit javascript embedded in HTML page

前端 未结 5 1294
终归单人心
终归单人心 2021-01-31 07:00

Chrome developer tools allows you to edit javascript in the browser if the javascript is in a .js file. However, it does not seem to allow me to edit javascript that is embedded

5条回答
  •  暖寄归人
    2021-01-31 07:56

    Actually chrome allows to do that, choose HTML files in Sources tab in Developer tools window. You will see HTML instead of javascript and simply add breakpoints in the

    Don't forget to remove debugger;'s when you want to release your website.

提交回复
热议问题