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.
--
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+uns...@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.
This is exactly the approach we expect and is what has worked for me in the past. Is it possible there is some confusion about exactly where the throw is happening compared to the breakpoints you are setting?
You might want to try with `--verbose` since that will also print stack traces for any exceptions caught by the build system.
package:regular_scanner/builder.dart 159:3 resolveInjectScannerArguments
package:regular_scanner/builder.dart 75:11 ScannerGenerator.generateForAnnotatedElement.<fn>
dart:async runZoned
package:regular_scanner/builder.dart 73:12 ScannerGenerator.generateForAnnotatedElement
package:source_gen/src/generator_for_annotation.dart 42:28 GeneratorForAnnotation.generate
package:source_gen/src/builder.dart 213:35 _generate
package:source_gen/src/builder.dart 74:15 _Builder._generateForLibrary
package:source_gen/src/builder.dart 68:11 _Builder.build
package:build runBuilder
package:build_runner_core/src/generate/build_impl.dart 432:15 _SingleBuild._runForInput.<fn>
package:build_runner_core/src/generate/performance_tracker.dart 304:73 _NoOpBuilderActionTracker.track
package:build_runner_core/src/generate/build_impl.dart 431:19 _SingleBuild._runForInput
package:build_runner_core/src/generate/build_impl.dart 356:38 _SingleBuild._runBuilder.<fn>
dart:async Future.wait
package:build_runner_core/src/generate/build_impl.dart 355:36 _SingleBuild._runBuilder
dart:async _AsyncAwaitCompleter.start
package:build_runner_core/src/generate/build_impl.dart 353:40 _SingleBuild._runBuilder
package:build_runner_core/src/generate/build_impl.dart 303:32 _SingleBuild._runPhases.<fn>
dart:async _completeOnAsyncReturn
package:build_runner_core/src/generate/build_impl.dart _SingleBuild._matchingPrimaryInputs
This is exactly the approach we expect and is what has worked for me in the past. Is it possible there is some confusion about exactly where the throw is happening compared to the breakpoints you are setting?
You might want to try with `--verbose` since that will also print stack traces for any exceptions caught by the build system.
--
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+uns...@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/ebe1ac5a-0e1c-47f4-b5e6-420ea809ca65%40dartlang.org.