Skip to content

[FLUTTER TOOLS] - Enable debug capabilities when useDwdsWebSocketConnection is true #2645

Open
@jyameo

Description

@jyameo

This changes are needed in Flutter tools to enable debugging capabilities when useDwdsWebSocketConnection is true.

// Change this:
bool get deviceIsDebuggable => device!.device is! WebServerDevice || debuggingOptions.startPaused;

// To this:
bool get deviceIsDebuggable => 
    device!.device is! WebServerDevice || 
    debuggingOptions.startPaused ||
    _useDwdsWebSocketConnection;

// And add this getter:
bool get _useDwdsWebSocketConnection {
  if (device?.devFS is WebDevFS) {
    return (device!.devFS! as WebDevFS).useDwdsWebSocketConnection;
  }
  return false;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions