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
breakpoint moves to strange lines #15634
Comments
Further to my previous feedback, note the messages when I try to set or unset the breakpoint. [breakpoint in comment.dart moved from line 101 to 189]. Which does not exist. Alan Knight projects: 6open dart files: 56auto-run pub: false SDK installed: true Attachment: |
Still further feedback on breakpoints moving. The problem survives both re-analyzing and restarting the editor. The problem starts at line 28. Breakpoints prior to that point are inserted at their correct position. A breakpoint on the factory constructor on line 28 gets moved. Source for the first bit attached. The entire project is dartdoc-viewer on github in web/client/comment.dart Alan Knight // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file library web.comment; import 'dart:html'; ourBreakpointsSuck() { // TODO(jmesserly): extend section once this bug is fixed? factory CommentElement() => new Element.tag('div', 'dartdoc-comment'); projects: 6open dart files: 56auto-run pub: false SDK installed: true |
I can repo this using the editor and using devtools. Setting a breakpoint in comment.dart line 43 moves the breakpoint to line 72. [40044.254==>{"id":11,"method":"Debugger.setBreakpointByUrl","params":{"urlRegex":"client/web/comment.dart","lineNumber":42}}] You should be able to break on line 43. Not sure why the VM decides to move the breakpoint so far down the file. cc @mhausner. |
This comment was originally written by jora...@gmail.com I have to same problem and in some file, I just can't debug because the debugger is in the wrong function. It happen in both, Dartium and dart editor using the latest 1.1.1 STABLE. |
This comment was originally written by corneli...@pcornelissen.de I'm having the same issues with 1.1.3 and dartium on linux. I think it worked before with an older version, but I don't know what triggered the bug... |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
Breakpoint resolution has long been fixed. |
Breakpoints getting out of sync. I have a breakpoint set in comment.dart, on line 101, inside an if statement that I put there so I could have a breakpoint. It's shown in the text editor. When the program runs it does indeed print "foo". When I look at the list of breakpoints, I see two active breakpoints in comment.dart, on the same line, 189. The file is 126 lines long.
Alan Knight
////////////////////////////////////////////////////////////////////////////////////
Editor: 1.1.0.edge_031110 (2013-12-12)
OS: Mac OS X - x86_64 (10.9)
JVM: 1.6.0_65
projects: 6
open dart files: 56
auto-run pub: false
localhost resolves to: 127.0.0.1
mem max/total/free: 1983 / 636 / 329 MB
thread count: 54
index: 1204090 relationships in 213068 keys in 558 sources
SDK installed: true
Dartium installed: true
Attachment:
screenshot.png (338.08 KB)
The text was updated successfully, but these errors were encountered: