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 doesn't show local field #17486
Comments
Matthias, it is not clear from this report whether this is even debugging in the VM or whether this is related to Dartium debugging. Can you please do a quick check to verify that the connecting to this kind of code from standalone does properly show all fields? |
This comment was originally written by @mhausner I modified the source a bit to replace type Http with a List: 1 Using the standalone debugger, I can break at the print statement in line 7 and list the stack trace.
inspecting the 'this' pointer in the top frame (object id 0) shows the instance field 'foo' (the equivalent of 'http' in the original code sample):
So, the debugger core isn't hiding the instance field. I don't know how the Dartium debugger decides when to inspect an object and display its instance fields. Removed the owner. |
This comment was originally written by @zoechi I deleted my previous comment, this was a misunderstanding. I hat this in the debugger included in DartEditor. |
The DartEditor is history. Other debuggers show the expected behavior. Closing the issue. |
This issue was originally filed by @zoechi
What steps will reproduce the problem?
1.
@NgComponent(selector: 'my-comp', publishAs: 'ctrl', template:
'<div>My component</div>')
class MyComponent {
Http http;
MyComponent(this.http) {
//http.request('http://www.google.com/');
var h = http;
print(http.defaults.headers);
}
}
2.
breakpoint on the print statement
3.
Debugger only shows
this | MyComponent [id=6]
hashcode | 1056498558
hashcode | 1056498558
What is the expected output? What do you see instead?
I think the debugger should show the field http and it's content
What version of the product are you using? On what operating system?
Dart VM version: 1.3.0-dev.3.2 (Mon Mar 10 10:15:05 2014) on "linux_x64"
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: