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 doesn't work for imported libraryies #4591

Closed
DartBot opened this issue Aug 19, 2012 · 2 comments
Closed

Debugger doesn't work for imported libraryies #4591

DartBot opened this issue Aug 19, 2012 · 2 comments
Labels
closed-as-intended Closed as the reported issue is expected behavior

Comments

@DartBot
Copy link

DartBot commented Aug 19, 2012

This issue was originally filed by [email protected]


I'm using revision 10595 of the sdk.

And I'm not able to debug imported library (foo.dart in example.zip).


Attachment:
example.zip (416 Bytes)

@devoncarew
Copy link
Member

By default the VM only allows you to perform stepping in the main library. In order to allow stepping in other libraries, it's necessary to explicitly enable stepping for those specific libraries. Too see an example of this look at the enableAllStepping() method in:

http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/VmConnection.java.

This is called by the editor's debugger after hitting the first breakpoint (in main()), but before resuming the VMs execution.


Added AsDesigned label.

@DartBot
Copy link
Author

DartBot commented Aug 20, 2012

This comment was originally written by [email protected]


Thank you! Strange but yesterday I couldn't debug it in the Dart editor. But now with the latest editor on Mac I can. Yesterday was difficult day maybe did something wrong in a hurry.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-as-intended Closed as the reported issue is expected behavior
Projects
None yet
Development

No branches or pull requests

2 participants