Get line number in Elements window of Chrome Developer Tools?

后端 未结 7 1026
耶瑟儿~
耶瑟儿~ 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:17

    I don't know if Chrome DevTools has changed since the post, but you can do this now:

    Expand the Error by clicking the arrow next to it and then click on the line that says stack(...) and it will expand into the same error message plus the source line where it occurred.

    I hope this helps!

提交回复
热议问题