Skip to content

devtools console reports incorrect line numbers for errors and prints #5851

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

Closed
mraleph opened this issue Oct 12, 2012 · 11 comments
Closed

devtools console reports incorrect line numbers for errors and prints #5851

mraleph opened this issue Oct 12, 2012 · 11 comments
Assignees
Milestone

Comments

@mraleph
Copy link
Member

mraleph commented Oct 12, 2012

DevTools console has a very handy feature that allows to quickly jump from the message printed to the place from where it originated. However it does not work with Dart code.

For messaged printed with print I see "undefined:1" as a location and for exceptions usually I see "file.dart:1".

Also DevTools source view shows red exception blobs at file.dart:1 position instead of showing them at the place where they actually occurred.

@dgrove
Copy link
Contributor

dgrove commented Oct 14, 2012

Added Triaged label.

@DartBot
Copy link

DartBot commented Oct 15, 2012

This comment was originally written by [email protected]


We need a debugger API method for retrieving current stack trace to fix this. See bug 2573 for details.


Added Duplicate label.
Marked as being merged into #2573.

@DartBot
Copy link

DartBot commented Oct 15, 2012

This comment was originally written by [email protected]


Added Triaged label.
Marked as being merged into #.
Marked this as being blocked by #2573.

@DartBot
Copy link

DartBot commented Oct 24, 2012

This comment was originally written by [email protected]


Added this to the Later milestone.

@DartBot
Copy link

DartBot commented Dec 14, 2012

This comment was originally written by [email protected]


Pavel, is there a VM bug we can use to mark this one as blocked on? If not, may I ask you to file one, please?

@DartBot
Copy link

DartBot commented Dec 14, 2012

This comment was originally written by [email protected]


This bug is already marked as blocked on issue #2573.

@jacob314
Copy link
Member

Set owner to @jacob314.
Removed this from the Later milestone.
Added this to the M7 milestone.

@vsmenon
Copy link
Member

vsmenon commented Oct 2, 2013

Removed this from the M7 milestone.
Added this to the M8 milestone.

@iposva-google
Copy link
Contributor

Jacob, is this still a problem? Last update was 10 months ago. We also disagree on this being blocked on issue #2573.


Unmarked this as being blocked by #2573.

@jacob314
Copy link
Member

This is still a problem but it isn't blocked by 2573.
I'll just add a helper method to capture this info by throwing an exception from Dart code.

@jacob314
Copy link
Member

Fixed with dartium r1461


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants