How do you launch the JavaScript debugger in Google Chrome?

前端 未结 15 1372
失恋的感觉
失恋的感觉 2020-11-22 03:33

When using Google Chrome, I want to debug some JavaScript code. How can I do that?

相关标签:
15条回答
  • 2020-11-22 04:22

    For Mac users, go to Google Chrome --> menu View --> Developer --> JavaScript Console.

    Screenshot

    0 讨论(0)
  • 2020-11-22 04:24

    Windows: CTRL-SHIFT-J OR F12

    Mac: --J

    Also available through the wrench menu (Tools > JavaScript Console):

    JavaScript Console Menu

    0 讨论(0)
  • 2020-11-22 04:24

    To open the dedicated ‘Console’ panel, either:

    • Use the keyboard shortcuts
      • On Windows and Linux: Ctrl + Shift + J
      • On Mac: Cmd + Option + J
    • Select the Chrome Menu icon, menu -> More Tools -> JavaScript Console. Or if the Chrome Developer Tools are already open, press the ‘Console’ tab.

    Please refer here

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