core/devtools_core/development_helpers library

Constants

debugDevToolsExtensions → const bool
Whether to build DevTools for conveniently debugging DevTools extensions.
debugPerfettoTraceProcessing → const bool
Enable this flag to debug Perfetto trace processing in the Performance screen.
debugTimers → const bool
Enable this flag to print timing information for callbacks wrapped in debugTimeSync or debugTimeAsync.

Properties

debugDtdUri → String?
Set this to a real DTD URI String for ease of developing features that use the Dart Tooling Daemon.
no setter
debugSendAnalytics ↔ bool
Enable this flag to send and debug analytics when DevTools is run in debug or profile mode, otherwise analytics will only be sent in release builds.
getter/setter pair
debugShowAnalyticsConsentMessage ↔ bool
Enable this flag to always show the analytics consent message, regardless of whether any other conditions are met.
getter/setter pair
stubExtensionEnabledStates → Map<String, ExtensionEnabledState>
Stubbed activation states so we can develop DevTools extensions without a server connection.
final

Functions

debugHandleExtensionEnabledState({required String extensionName, bool? enable}) → ExtensionEnabledState
debugHandleRefreshAvailableExtensions({bool includeRuntime = true}) → List<DevToolsExtensionConfig>
debugTimeAsync(FutureOr<void> callback(), {required String debugName}) → FutureOr<void>
Debug helper to run an asynchronous callback and print the time it took to run to stdout.
debugTimeSync(void callback(), {required String debugName}) → void
Debug helper to run a synchronous callback and print the time it took to run to stdout.
debugTraceCallback(void callback()) → void
Helper method to call a callback only when debugging issues related to trace event duplicates (for example https://github.com/dart-lang/sdk/issues/46605).
resetDevToolsExtensionEnabledStates() → void