MCPcopy
hub / github.com/microsoft/vscode-js-debug / shouldForceProcessIntoDebugMode

Function shouldForceProcessIntoDebugMode

src/targets/node/bootloader.ts:206–216  ·  view source on GitHub ↗
(env: IBootloaderInfo)

Source from the content-addressed store, hash-verified

204}
205
206function shouldForceProcessIntoDebugMode(env: IBootloaderInfo) {
207 switch (env.autoAttachMode) {
208 case AutoAttachMode.Always:
209 return true;
210 case AutoAttachMode.Smart:
211 return shouldSmartAttach(env);
212 case AutoAttachMode.OnlyWithFlag:
213 default:
214 return false;
215 }
216}
217
218/**
219 * Returns whether to smart attach. The goal here is to avoid attaching to

Callers 1

inspectOrQueueFunction · 0.85

Calls 1

shouldSmartAttachFunction · 0.85

Tested by

no test coverage detected