I can't debug Dart program , but I can run it without debugging
See original GitHub issueIssue Type: Bug
Connecting to VM Service at http://127.0.0.1:38739/SnorJxJUdlg=/ Unable to start debugging: Error: Unexpected server response: 200Exited (sigint)
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:26:56.255Z) OS version: Linux x64 5.10.42-1-MANJARO Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i5-3210M CPU @ 2.50GHz (4 x 2881) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on rasterization: disabled_software skia_renderer: enabled_on video_decode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | 2, 2, 1 |
Memory (System) | 7.62GB (0.33GB free) |
Process Argv | –no-sandbox --unity-launch ~/Desktop/myDartCode/secondDartCode --crash-reporter-id 07061f5d-2260-4f60-817d-613219042a38 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | xfce |
XDG_CURRENT_DESKTOP | XFCE |
XDG_SESSION_DESKTOP | xfce |
XDG_SESSION_TYPE | x11 |
Extensions (3)
Extension | Author (truncated) | Version |
---|---|---|
dart-code | Dar | 3.23.1 |
flutter | Dar | 3.23.0 |
MagicPython | mag | 1.1.0 |
(2 theme extensions excluded)
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255cf:30323309
vscorehov:30309549
vscod805cf:30301675
vscextlang:30322306
binariesv615:30325510
vsccppwt:30329788
aatestflight:30331711
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unable to debug flutter dart code in VS Code, Unverified ...
Navigate to the Run Tab and select Dart & Flutter from the drop down menu, finally hit the play button. Share.
Read more >#3 - How to CREATE, RUN & DEBUG a Dart Project (Terminal ...
Hi there! In this video I'll show you multiple ways on how to create, run and debug a Dart Project. All animations were...
Read more >dart run
Command-line tool for running a Dart program. ... Running a Dart file. You can run a Dart file by passing its relative path:...
Read more >Debugging Flutter apps
There's a wide variety of tools and features to help debug Flutter applications. Here are some of the available tools: DevTools, a suite...
Read more >Run/Debug Configuration: Dart Remote Debug - JetBrains
The dialog is available only when the Dart plugin is installed and enabled on the Settings/Preferences | ...
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
@sorgfal
If you’re really stuck on an old Dart SDK, the best thing is probably to also switch back to a slightly older version of the Dart extension:
It’s difficult to ensure compatibility with older SDKs because there’s a lot changing (especially with the migration to LSP for the language server). I do try to support older SDKs where possible, but there’s unfortunately not a great fix to this one that doesn’t re-introduce another bug for some users on the latest SDK.
@MohammadSalloum
I think you should be able to use the latest SDK without having to use null-safety. If you set your
pubspec.yaml
to include an SDK constraint below 2.12 I think null safety will be disabled, and then all the code should be exactly the same but you won’t hit this issue.I think that many developers (like me) cannot migrate to the new version of dart due to the discontinuation of aqueduct support. We cannot give up projects and cannot rewrite them from scratch. The only way out is to continue using the old version of dart, but at the same time, this bug breaks the ability to support projects written in this framework