How to debug a transformer

150 views
Skip to first unread message

Günter Zöchbauer

unread,
Oct 6, 2014, 5:02:00 AM10/6/14
to mi...@dartlang.org
see also http://stackoverflow.com/questions/26210886/how-can-i-debug-a-custom-transformer

Is there a way to connect the DartEditor debugger to pub serve to debug a transformers or to simulate the invocation of the transformer from for example an unit test.

Any other tips how to analyze the behavior of a transformer?

Dennis Kaselow

unread,
Oct 6, 2014, 10:39:44 AM10/6/14
to mi...@dartlang.org
What do you mean by simulating the invocation from a unit test (more than just calling apply directly?)? I can't debug via pub serve either, but doing it through a unit test works just fine.

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Günter Zöchbauer

unread,
Oct 6, 2014, 11:03:16 AM10/6/14
to mi...@dartlang.org
How do you build the `Transform` instance you need to pass to `apply`?

Dennis Kaselow

unread,
Oct 6, 2014, 11:10:10 AM10/6/14
to mi...@dartlang.org

Günter Zöchbauer

unread,
Oct 6, 2014, 1:25:32 PM10/6/14
to mi...@dartlang.org
Didn't think of that. Thanks for the link!
Reply all
Reply to author
Forward
0 new messages