Skip to content

Make dwds serve dart objects #982

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

Open
annagrin opened this issue May 1, 2020 · 0 comments
Open

Make dwds serve dart objects #982

annagrin opened this issue May 1, 2020 · 0 comments

Comments

@annagrin
Copy link
Contributor

annagrin commented May 1, 2020

Currently, upon stack, scope, or object requests from IDEs, dwds does some heuristic processing of JavaScript frames and variables in current scope to make them appear as coming from dart. While that approach work in many cases due to JavaScript code produced by DDC being very close to dart, there are some corner cases where the heuristics fail. This also imposes limitations on changes in DDC, as they may break the heuristics.

We need a more reliable approach where the debugger can use compiler's symbol and type information, as well as mapping from JavaScript to dart symbol and type (via locations?) in order to have dart-oriented internal representation of stacks, scopes, and objects.

Related issues

dart-lang/sdk#40776

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

1 participant