Fetch full developer.log messages#2333
Conversation
|
Will update the CHANGELOG once I reset DWDS (it was just released): #2334 |
nshahan
left a comment
There was a problem hiding this comment.
I'm so excited you found the answer to the truncating message! Thank you so much!
Is there an easy way to reproduce the truncating so that we can test it is no longer happening?
And just to document our in person conversation, we can look into the inspect() API as well.
developer.log messagesdart.developer.log messages
dart.developer.log messagesdeveloper.log messages
Added a test case, and opened a bug and added a TODO for inspect |
|
My |
|
Hi @toineheuvelmans ! Could you file an issue here with steps to reproduce? https://github.com/dart-lang/webdev/issues/new?assignees=&labels=package%3Awebdev&projects=&template=webdev.md It's possible we aren't able to fetch the full logs here: Thanks! |
Fixes #2330, flutter/devtools#3222
The CDP consoleAPICalled event args are
RemoteObjectswith only theobjectPreviewprovided. ThisobjectPreviewis what we were previously constructing theRemoteLogfrom. Since they are only a preview, the log messages are abbreviated.To get the full log message, we need to fetch the full object using
getProperties.Confirmed that we now see unabbreviated logs in DevTools: