Skip to content

Trying to set breakpoints in reference-backed source files throws #1566

Closed

Description

@DanTup

This happens because we assume source.path is set in a breakpoint request.

rejected promise not handled within 1 second: TypeError: Cannot read property 'replace' of undefined
stack trace: TypeError: Cannot read property 'replace' of undefined
	at Object.formatPathForVm (/Users/dantup/Dev/Dart-Code/out/src/debug/utils.js:75:17)
	at DartDebugSession.<anonymous> (/Users/dantup/Dev/Dart-Code/out/src/debug/dart_debug_impl.js:431:27)
	at Generator.next (<anonymous>)
	at __awaiter (/Users/dantup/Dev/Dart-Code/out/src/debug/dart_debug_impl.js:7:71)
	at new Promise (<anonymous>)
	at __awaiter (/Users/dantup/Dev/Dart-Code/out/src/debug/dart_debug_impl.js:3:12)
	at DartDebugSession.setBreakPointsRequest (/Users/dantup/Dev/Dart-Code/out/src/debug/dart_debug_impl.js:421:16)

Activity

  1. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Mar 28, 2019
  2. added this to the v2.26.0 milestone on Mar 28, 2019
  3. added a commit that references this issue on Mar 28, 2019
    3b05d93
  4. added a commit that references this issue on Apr 4, 2019
    73978fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions