dart-archive / sdk

The Dartino project was an experiment seeking to improve productivity when writing application code for embedded devices.
https://dartino.org
Other
330 stars 36 forks source link

Using the wrong 'bf' syntax crashes the debugger #566

Closed sgjesse closed 8 years ago

sgjesse commented 8 years ago

Using

bf disco-light.dart 24

works, but using gdb-syntax

bf disco-light.dart:24

crashes the debugger.

^\samples/stm32f746g-discovery/disco-light.dart:23:63
23       var color = new Color(rnd.nextInt(255), rnd.nextInt(255), rnd.nextInt(255));
> bf disco-light.dart 24    
### set breakpoint 0: main @ samples/stm32f746g-discovery/disco-light.dart:24:5
> bf disco-light.dart:24
Closing tty-connection
The Dartino program is broken and has crashed.

The Dartino team would greatly appreciate if you would take a moment to
report this problem at https://github.com/dartino/sdk/issues/new

Please include the following information:

* the name and version of your operating system

* the Dartino SDK version (0.5.0-edge.2004f8c7e9b854a49f495a7f6a9933652a8365b4)

* the entire message you see here (including the full stack trace below)

Unsupported operation: Cannot extract a file path from a disco-light.dart URI
#0      Uri.toFilePath (dart:core/uri.dart:1930)
#1      File.File.fromUri (dart:io/file.dart:215)
#2      CommandLineDebugger.handleLine.<handleLine_async_body> (package:dartino_compiler/cli_debugger.dart:173:23)
#3      Future.Future.microtask.<anonymous closure> (dart:async/future.dart:144)
#4      _rootRun (dart:async/zone.dart:895)
#5      _CustomZone.run (dart:async/zone.dart:790)
#6      _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:723)
#7      _microtaskLoop (dart:async/schedule_microtask.dart:41)
#8      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#9      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#10     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)

Session 'local' was terminated.