[Feature Request] Show line numbers for console logs on left side

1,801 views
Skip to first unread message

Chandransh Srivastava

unread,
Nov 29, 2018, 5:45:29 AM11/29/18
to Chrome DevTools
Hi,
I was recently debugging a large code base and added a lot of console statements to track the data flow. In case of console logs covering the entire window, it becomes difficult to track the newly added console log in the console window for any action.

What I propose is to assign line numbers to these console logs on the left side of them. That's it.

Expected feature:



PhistucK

unread,
Nov 29, 2018, 5:54:18 AM11/29/18
to google-chrome-...@googlegroups.com
There is already an alternative solution - you can configure the console to add a time stamp to each log.
image.png
Here is the result -
image.png

PhistucK


--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/4018d712-bf8f-4664-9a41-a3f735801f90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chandransh Srivastava

unread,
Nov 29, 2018, 6:14:17 AM11/29/18
to Chrome DevTools
Thanks for replying. I already know about timestamp and I am currently using that. However, I feel it is quite verbose. So, having line numbers would be good.

On Thursday, November 29, 2018 at 4:24:18 PM UTC+5:30, PhistucK wrote:
There is already an alternative solution - you can configure the console to add a time stamp to each log.
image.png
Here is the result -
image.png

PhistucK


On Thu, Nov 29, 2018 at 12:45 PM Chandransh Srivastava <chandr...@gmail.com> wrote:
Hi,
I was recently debugging a large code base and added a lot of console statements to track the data flow. In case of console logs covering the entire window, it becomes difficult to track the newly added console log in the console window for any action.

What I propose is to assign line numbers to these console logs on the left side of them. That's it.

Expected feature:



--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.

aritra mukherjee

unread,
May 13, 2020, 2:16:19 AM5/13/20
to Chrome DevTools
Is it already in place? I also felt the need for that. debugger; works well, but not convenient for snippets of 20-30 lines.

Yang Guo

unread,
May 13, 2020, 3:35:36 AM5/13/20
to Google Chrome Developer Tools
Please use Snippets for larger pieces of JS that you want to run in DevTools. That should cover your use case sufficiently.

Yang

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/c6af25d9-5c0f-43c5-bdd7-4bbe2f783f0f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages