stack_trace
stack_trace copied to clipboard
StackTrace with Chain.capture is not showing all line numbers
https://stackoverflow.com/questions/53641701/stacktrace-is-not-showing-line-numbers-for-every-point
I am using Chain.capture(() {...}); to execute async functions in Dart, but some points in StackTrace are not showing the line number, and those lines are the ones I need to debug :D What can I do to see all line numbers?
Dart 2.1, VM
dart:async _completeOnAsyncReturn
package:oni_server/src/executor/executor.dart Executor.find
dart:async _completeOnAsyncReturn
package:oni_server/src/executor/executor.dart Executor.findMap
===== asynchronous gap ===========================
dart:async _AsyncAwaitCompleter.completeError
package:guaraci_tracker/visitor.dart Visitor.answered
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:guaraci_tracker/visitor.dart Visitor.answered
package:guaraci_tracker/visitor.dart 479:9 Visitor.command
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:oni_server/src/socket/base_user.dart BaseSocketUser.process
bin/main.dart 18:18 main.<fn>.<fn>.<fn>
package:stack_trace Chain.capture
bin/main.dart 17:13 main.<fn>.<fn>
Any update?
Does this still happen with Dart SDK 3.5.2?
If it does, please feel free to reopen with a repro.