Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger stops at internal code, when assigning to nonexistent field #15067

Closed
DartBot opened this issue Nov 14, 2013 · 13 comments
Closed

Debugger stops at internal code, when assigning to nonexistent field #15067

DartBot opened this issue Nov 14, 2013 · 13 comments
Assignees
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue
Milestone

Comments

@DartBot
Copy link

DartBot commented Nov 14, 2013

This issue was originally filed by Peter....@gmail.com


What steps will reproduce the problem?

Run the following code from the DartEditor:

{{{
    class C {}
    
    void main() {
       C c = new C();
       c.x = 3;
    }
}}}

What is the expected output? What do you see instead?

Expected behaviour: Debugger should stop at line 5.
Actual behaviour: Debugger stops at line 42 of dart:core-patch_object_patch.dart

What version of the product are you using? On what operating system?

Dart Editor version 1.0.0_r30188 (STABLE)
Dart SDK version 1.0.0.3_r30188
Ubuntu 13.10 64bit

Please provide any additional information below.

@DartBot
Copy link
Author

DartBot commented Nov 14, 2013

This comment was originally written by @mhausner


Using the command line tool ddbg.dart, The VM breaks at the expected place if I set a breakpoint on the statement c.x = 3;


cc @mhausner.

@DartBot
Copy link
Author

DartBot commented Nov 14, 2013

This comment was originally written by Pete...@gmail.com


To clarify: I did not set any breakpoints. The debugger breaks, because an exception is thrown in that line (as expected). There is an option in the dart-editor to enable pause on uncaught exceptions.

@sethladd
Copy link
Contributor

Added Area-Editor, Editor-Debugging, Triaged labels.

@clayberg
Copy link

Set owner to @devoncarew.
Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@clayberg
Copy link

clayberg commented Apr 9, 2014

Removed this from the Later milestone.
Added this to the 1.4 milestone.

@kasperl
Copy link

kasperl commented May 8, 2014

Removed this from the 1.4 milestone.
Added this to the 1.5 milestone.

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the 1.5 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@sethladd
Copy link
Contributor

Will return to repro.

@clayberg
Copy link

cc @scheglov.

@scheglov
Copy link
Contributor

VM returns such stack trace, and Editor just shows it.

And ddbg does the same.

epi all
r
Isolate 827625030 paused on exception
(obj, id 0) object of type NoSuchMethodError
bt
#­0 Object.noSuchMethod at file: object_patch.dart lib: 0 token: 239
  this = (obj, id 1) object of type C
  invocation = (obj, id 2) object of type _InvocationMirror
#­1 main at file: test2.dart lib: 13 token: 24
  c = (obj, id 1) object of type C
#­2 _startIsolate@709387912 at file: isolate_patch.dart lib: 1 token: 1247
  parentPort = (obj, id 3) null
  entryPoint = (closure main() => void file: test2.dart lib: 13 token: 7)
  args = (list, id 5, len 0) []
  message = (obj, id 3) null
  isSpawnUri = true
  controlPort = (obj, id 3) null
  capabilities = (obj, id 3) null
#­3 <anonymous closure> at file: isolate_patch.dart lib: 1 token: 988
  port = (obj, id 7) object of type RawReceivePortImpl
  entryPoint = (closure main() => void file: test2.dart lib: 13 token: 7)
  args = (list, id 5, len 0) []
  
@709387912 = (obj, id 3) null
#­4 _RawReceivePortImpl@709387912._handleMessage@709387912 at file: isolate_patch.dart lib: 1 token: 649
  handler = (closure _startMainIsolate.<anonymous closure>(dynamic) => dynamic file: isolate_patch.dart lib: 1 token: 971)
  message = (obj, id 3) null


cc @devoncarew.
Set owner to @scheglov.
Added NotPlanned label.

@clayberg
Copy link

Added this to the 1.7 milestone.

@DartBot DartBot added Type-Defect closed-not-planned Closed as we don't intend to take action on the reported issue labels Sep 27, 2014
@DartBot DartBot added this to the 1.7 milestone Sep 27, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue
Projects
None yet
Development

No branches or pull requests

5 participants