Can't see multi-line entries in extension console

319 views
Skip to first unread message

Jerry Krinock

unread,
Jul 1, 2025, 10:58:12 AM7/1/25
to Chromium Extensions
The extension console (window title "DevTools") in Chrome 138 is showing me only the first line of console entries.  Does anyone know how to show the other lines?  This is the first time I've used the extension console in a year or so and I don't remember having this trouble previously.

Oliver Dunk

unread,
Jul 1, 2025, 11:00:00 AM7/1/25
to Jerry Krinock, Chromium Extensions
Hi Jerry,

Would you be able to share a screenshot of what you are seeing?

That sounds unexpected but it's hard to say for sure based on the description alone :)
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


On Tue, Jul 1, 2025 at 3:58 PM Jerry Krinock <je...@sheepsystems.com> wrote:
The extension console (window title "DevTools") in Chrome 138 is showing me only the first line of console entries.  Does anyone know how to show the other lines?  This is the first time I've used the extension console in a year or so and I don't remember having this trouble previously.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/6d83130a-176f-4206-972a-b193c60777c0n%40chromium.org.
Message has been deleted
Message has been deleted

Jerry Krinock

unread,
Jul 1, 2025, 12:32:28 PM7/1/25
to Chromium Extensions, Oliver Dunk, Chromium Extensions, Jerry Krinock
I posted a screenshot and some code but now I see a "Message has been deleted" marker in its place.  Did you get it, Oliver?

Jerry Krinock

unread,
Jul 1, 2025, 12:32:34 PM7/1/25
to Chromium Extensions, Oliver Dunk, Chromium Extensions, Jerry Krinock
Screenshot of the console window:
Screenshot 2025-07-01 at 08.49.54.png

The two lines beginning with "Error 632384 are multiline console entries created by this code:

logError(632384, "Failed moving id=" + json.exid + " to", destinInfo, ".  Ignoring.  Error: " + chrome.runtime.lastError.message);


and


function logError(errorCode, errorDescription) {

    if (!isDefined(errorDescription)) {

      errorDescription = "Sorry, no error description"

    }

    console.log("Error " + errorCode + ": " + errorDescription);

    ...

}


I'm pretty sure that destinInfo is a multiline string.  I need to see that "chrome.runtime.lastError.message.

On Tuesday, July 1, 2025 at 8:00:00 AM UTC-7 Oliver Dunk wrote:

Jerry Krinock

unread,
Jul 1, 2025, 9:03:57 PM7/1/25
to Chromium Extensions, Jerry Krinock, Oliver Dunk, Chromium Extensions
Remembering that Chrome extensions support breakpoints, l was able to work around the problem by viewing the variables which are concatenated and passed to my logError(…) function there.  All of the variables were defined and good – nothing that the console should choke on.

One thing I just realized is that I am using macOS 26.0 Beta (25A5295e).  So this could be a macOS issue.

Oliver Dunk

unread,
Jul 4, 2025, 12:08:37 PM7/4/25
to Jerry Krinock, Chromium Extensions
Hi Jerry,

Not to worry, I got your screenshot just fine. Sorry for the deleted messages - sometimes this happens for reasons we don't fully understand. It isn't something we are doing intentionally.

I tried a very basic test in Chrome Beta and Chrome Canary, but in both cases the output was as expected: `console.log(`test\ntest\ntest\ntest\ntest\ntest`)`

I wonder if `destinInfo` is being truncated elsewhere in your code rather than this being a DevTools bug.

If you could share a sample extension that reproduces this of course, that would be really helpful and I could then flag it to the DevTools team.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB

Reply all
Reply to author
Forward
0 new messages