DumpWatcher class
Captures all debugPrint output by overriding the global callback.
Installs by replacing the global debugPrint function with an interceptor that records a DumpRecord to TelescopeStore AND calls the previous debugPrint value (chain-preserve; Sentry/Bugsnag pattern). On uninstall, restores the previous reference exactly.
This watcher is opt-in and NOT auto-installed by TelescopePlugin.install. Register it explicitly:
TelescopePlugin.registerWatcher(DumpWatcher());
install is gated on kDebugMode (or allowInRelease set to true before calling install). In release builds, install is a no-op so the entire watcher is tree-shaken by dart2js and dart2native AOT.
- Implemented types
Constructors
Properties
- allowInRelease ↔ bool
-
Allow capturing in release builds. Defaults to false; override before
calling install only when you explicitly need release-build capture.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Human-readable watcher name.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
install(
) → void -
Wire the watcher's listening hook (event subscription, override, etc.).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uninstall(
) → void -
Tear down the hook (test isolation).
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited