Philipp S
2018-07-19 22:22:32 UTC
Hello!
I'm trying to write a Builder using package:build. Right now I need to
debug what I wrote, but I have serious problems to access the state of my
program: The debugger doesn't stop on breakpoints or thrown exceptions.
My setup is:
- I run `pub run build_runner build` to generate a
.dart_tool/build/entrypoint/build.dart file.
- I run `dart --observe --pause-isolates-on-start
.dart_tool/build/entrypoint/build.dart build`.
- I set a breakpoint in my builder class. (here[1] to be exact)
- When continuing the program, the breakpoint is ignored, and some lines
later an exception is thrown.
I use Dart 2.0.0-dev.68.0 and build 0.12.7+2.
I appreciate any hints how I can approach this situation. As a last resort,
I tried using `print()` calls to get any information out of the program,
but even the print output is somehow intercepted.
Best regards
Philipp
[1]: https://github.com/pschiffmann/regular_scanner.dart/blob/57cbd5bf824ad1f76e94db1c08fdf2f7f2f2a048/lib/builder.dart#L71
I'm trying to write a Builder using package:build. Right now I need to
debug what I wrote, but I have serious problems to access the state of my
program: The debugger doesn't stop on breakpoints or thrown exceptions.
My setup is:
- I run `pub run build_runner build` to generate a
.dart_tool/build/entrypoint/build.dart file.
- I run `dart --observe --pause-isolates-on-start
.dart_tool/build/entrypoint/build.dart build`.
- I set a breakpoint in my builder class. (here[1] to be exact)
- When continuing the program, the breakpoint is ignored, and some lines
later an exception is thrown.
I use Dart 2.0.0-dev.68.0 and build 0.12.7+2.
I appreciate any hints how I can approach this situation. As a last resort,
I tried using `print()` calls to get any information out of the program,
but even the print output is somehow intercepted.
Best regards
Philipp
[1]: https://github.com/pschiffmann/regular_scanner.dart/blob/57cbd5bf824ad1f76e94db1c08fdf2f7f2f2a048/lib/builder.dart#L71
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/dadfd9ab-7ac6-45a0-b8ee-8d7f0484c387%40dartlang.org.
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/dadfd9ab-7ac6-45a0-b8ee-8d7f0484c387%40dartlang.org.