-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsin flutterRelates to running Flutter appsRelates to running Flutter appsis bug
Milestone
Description
Describe the bug
Sometimes when a Dart stacktrace is printed to the debug console, it is not parsed properly by VS Code. For example:
#0 ProfileInfoEndpoint._getAllUserInfo (package:click_server/src/endpoints/profile_endpoint.dart:29:7)
<asynchronous suspension>
#1 ProfileInfoEndpoint.updateProfile (package:click_server/src/endpoints/profile_endpoint.dart:49:9)
<asynchronous suspension>
#2 EndpointDispatch.handleUriCall (package:serverpod/src/server/endpoint_dispatch.dart:111:20)
<asynchronous suspension>
#3 Server._handleRequest (package:serverpod/src/server/server.dart:243:18)
<asynchronous suspension>For this stacktrace, the filename and line numbers are not identified and linked in the debug console by VS Code. They are treated simply as text.
In this stacktrace, also from the debug console, some of the lines are correctly linked back to source (shown indented on a new line here, but shown as right-justified links in the debug console window in VS Code), and some are not:
E/flutter (10117): #0 List.[] (dart:core-patch/growable_array.dart:264:36)
E/flutter (10117): #1 _ProfilePhotoEditorListState._editCaption
profile_photo_editor_list.dart:246
E/flutter (10117): #2 _ProfilePhotoEditorListState._addPhoto.<anonymous closure>.<anonymous closure>
profile_photo_editor_list.dart:234
E/flutter (10117): #3 showPhotoCropper.<anonymous closure>.<anonymous closure>
photo_cropper_widget.dart:40
E/flutter (10117): #4 new Future.delayed.<anonymous closure> (dart:async/future.dart:427:39)
E/flutter (10117): #5 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
E/flutter (10117): #6 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
E/flutter (10117): #7 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
E/flutter (10117): #8 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)Please complete the following information:
- Operating System and version: Fedora 38
- VS Code version: 1.81.1
- Dart extension version: 3.72.1
- Dart/Flutter SDK version: 3.10.0
- Target device (if the issue relates to Flutter debugging):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsin flutterRelates to running Flutter appsRelates to running Flutter appsis bug