Get line number in Elements window of Chrome Developer Tools?

后端 未结 7 989
耶瑟儿~
耶瑟儿~ 2020-12-30 21:32

In Chrome, Tools -> Developer Tools -> Elements tab. There are no line numbers next to the source code. Is there a way to toggle them on?

相关标签:
7条回答
  • 2020-12-30 22:25

    If you go to View Page Source, this will show the current line numbers. Either right-click -> View Page Source, or hit Ctrl+U on Windows, or Cmd+Option+U on Mac.

    For what it's worth, I needed this because I was getting a javascript error with a line number. The dev tools weren't showing this snippet in the regular source tab, presumably because it was embedded in HTML and I had a compilation error (stupid missing comma).

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