Flutter Logging View: Where is my stack trace?
See original GitHub issueI read this article about the developer.log
method I didn’t know before.
For my error logs, I call it with level: severe
and attach the error
and stackTrace
object. But the Flutter Logging view doesn’t show it. I only see the log message 😦
Bonus: Is it correct that the “normal” logging view (the Run
view) doesn’t show developer.log
messages? I only see print
messages. Also if I call flutter run
on my console.
Version info
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale de-DE)
• Flutter version 1.2.1 at /Users/ralphbergmann/Downloads/flutter
• Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/ralphbergmann/android-sdk-macosx
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/ralphbergmann/android-sdk-macosx
• Java binary at: /Users/ralphbergmann/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.5409101/Android Studio 3.5 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2, Build version 10E125
• ios-deploy 2.0.0
• CocoaPods version 1.6.0
[✓] Android Studio
• Android Studio at /Users/ralphbergmann/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.5409101/Android Studio 3.5 Preview.app/Contents
• Flutter plugin version 34.0.4
• Dart plugin version 191.6183.87
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1)
• IntelliJ at /Users/ralphbergmann/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
• Flutter plugin version 33.4.3
• Dart plugin version 191.6183.41
[✓] VS Code (version 1.24.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.13.2
[✓] Connected device (1 available)
• Nexus 5 • 0d11c20843e61cc0 • android-arm • Android 6.0.1 (API 23)
• No issues found!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How do you get the current stacktrace in Dart for a Completer ...
This is useful if you need to get a stack trace from any arbitrary location, but if you're within a catch block, the...
Read more >Debugging Flutter apps programmatically
You can use the debugPrintStack() method from the services library to print your own stack traces on demand, if this kind of approach...
Read more >Analyze a stack trace - Android Developers
Open stack traces from external sources · Open your project in Android Studio. Note: Make sure the source code you're viewing is from...
Read more >How to read a StackTrace - Friends or Enemies - YouTube
Today's video is brought to you by Bluehost: https://geni.us/web-hosting-blue-host (Affiliate)During the development process, you will have ...
Read more >stack_trace | Dart Package - Pub.dev
This library provides the ability to parse, inspect, and manipulate stack traces produced by the underlying Dart implementation. It also provides functions ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also added the Showing network traffic from this article, it is a really cool feature.
When I click on a url it opens an extra view on the right side which shows the response headers. Maybe you can also show the stack trace in this view.
See also: #3035.