You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
developer.log output is truncated so much that it's almost useless. IMO it would be better to just print entire thing - if I wanted to truncate, I could do it before calling the log method.
import'dart:developer';
voidmain(List<String> arguments) {
const text1 ="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
final text2 =Iterable.generate(100, (i) =>'Lorem ipsum dolor sit amet').join('\n');
log(text1);
log(text2);
}
Outputs:
[log] Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut e…
[log] Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Lorem ipsum dolor si…
Exited
developer.log output is truncated so much that it's almost useless. IMO it would be better to just print entire thing - if I wanted to truncate, I could do it before calling the log method.
Outputs:
I suspect that this line needs to be changed:
Dart-Code/src/debug/dart_debug_impl.ts
Line 1598 in 6ad3ce7
To use fullValueAsString:
Dart-Code/src/debug/dart_debug_impl.ts
Line 1605 in 6ad3ce7
I'm going to try if it works and submit MR.
I also checked on Android studio and did not have this truncation.
The text was updated successfully, but these errors were encountered: