MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / applyNewDebugOption

Method applyNewDebugOption

src/extension/commands/debug.ts:1019–1034  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1017 }
1018
1019 public applyNewDebugOption() {
1020 this.debugOptions.text = `Debug ${debugOptionNames[this.currentDebugOption]}`;
1021
1022 const debugExternalPackageLibraries = this.currentDebugOption === DebugOption.MyCodePackages || this.currentDebugOption === DebugOption.MyCodePackagesSdk;
1023 const debugSdkLibraries = this.currentDebugOption === DebugOption.MyCodeSdk || this.currentDebugOption === DebugOption.MyCodePackagesSdk;
1024
1025 void config.setGlobalDebugExternalPackageLibraries(debugExternalPackageLibraries);
1026 void config.setGlobalDebugSdkLibraries(debugSdkLibraries);
1027
1028 debugSessions.forEach((session) => {
1029 void session.session.customRequest("updateDebugOptions", {
1030 debugExternalPackageLibraries,
1031 debugSdkLibraries,
1032 });
1033 });
1034 }
1035
1036 public setSendLogsToClient(enabled: boolean) {
1037 // Only send values for sessions that didn't already have logging enabled.

Tested by

no test coverage detected