initWithContext method
Initializes the DevTools service with a debugging context.
Sets up the inspector server and UI inspector, enabling Chrome DevTools to connect to and debug the WebF content.
@param context The DebuggingContext instance to enable debugging for
Implementation
@override
void initWithContext(DebuggingContext context) {
// Call parent init to set up the context and UI inspector
super.initWithContext(context);
// Register this context with the unified service
unifiedService._registerContext(context, this);
// Start the unified service if not already running
if (!unifiedService.isRunning) {
unifiedService.start().then((_) {
print('Chrome DevTools service started');
}).catchError((error) {
print('Failed to start DevTools service: $error');
});
}
}