Cannot run debug mode with sdk 1.14.2+

38 views
Skip to first unread message

Eason Pai

unread,
Mar 9, 2016, 12:14:11 AM3/9/16
to Dart Server-side and Cloud Development
I use Webstorm 10.x & Windows 10,
once when i update my sdk to 1.14.2/1.15.0+ and debug my main dart,
I get this message:

D:\CONSOLE\_dev\dart\sdk\dart-sdk_v1.15.0-dev.5.0\bin\dart.exe --ignore-unrecognized-flags --checked --debug:49501 --break-at-isolate-spawn --enable-vm-service:49502 --trace_service_pause_events D:\google_drive\_Development\Dart\_project\project-dartsphere\dart-sphere\bin\main.dart
Observatory listening on http://127.0.0.1:49502
Unable to connect debugger to the Dart VM: Connection refused: connect
Process finished with exit code -1

If I run with "run mode" instead of "debug mode", then this problem is gone, 
but of course I cannot debug it anymore.

If I switch sdk version back to 1.13.x and run with debug mode, then this problem is gone too.
totally have no idea why and what can i do with this,
please help~

Eason Pai

unread,
Mar 9, 2016, 1:46:33 AM3/9/16
to Dart Server-side and Cloud Development
I tried to working on my Mac (El Cap.) & Webstorm 10 , and I got the same problem too

Unable to connect debugger to the Dart VM: Connection refused 
 
/Users/eason/Documents/dev/dart/sdk/dart-sdk/dart-sdk_v1.14.2/bin/dart --ignore-unrecognized-flags --checked --package-root=/Users/eason/Documents/dev/dart/project/project-dartsphere/dartsphere/packages --debug:52304 --break-at-isolate-spawn --enable-vm-service:52305 --trace_service_pause_events /Users/eason/Documents/dev/dart/project/project-dartsphere/dartsphere/bin/main.dart
Observatory listening on http://127.0.0.1:52305
Process finished with exit code 137

No one meet the same problem like this?


Eason Pai於 2016年3月9日星期三 UTC+8下午1時14分11秒寫道:

Søren Gjesse

unread,
Mar 9, 2016, 3:35:15 AM3/9/16
to Eason Pai, Dart Server-side and Cloud Development
This is most likely due to the removal of the "legacy debug protocol" in version 1.14, see https://github.com/dart-lang/sdk/issues/24209. According to the comment by alexander-doroshko WebStorm support the "VM Service protocol" for debugging. You should check if you need to upgrade WebStorm or the Dart plug-in.

Regards,
Søren

---
Søren Gjesse
Software Engineer, Google Denmark
CVR nr. 28 86 69 84


--
You received this message because you are subscribed to the Google Groups "Dart Server-side and Cloud Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud+un...@dartlang.org.
Visit this group at https://groups.google.com/a/dartlang.org/group/cloud/.

Eason Pai

unread,
Mar 9, 2016, 4:34:01 AM3/9/16
to Dart Server-side and Cloud Development, medi...@gmail.com
Thanks for the clue! 
Looks there are no further update for Webstorm 10, 
I will check over github for more information. 
I'm surprised that not too many people using Webstorm for server side development.

BR,
Eason

Søren Gjesse於 2016年3月9日星期三 UTC+8下午4時35分15秒寫道:
Reply all
Reply to author
Forward
0 new messages