@inheritdoc
(adapter: DebugAdapter, target: ITarget)
| 179 | |
| 180 | /** @inheritdoc */ |
| 181 | public async initAdapter(adapter: DebugAdapter, target: ITarget): Promise<boolean> { |
| 182 | const init = this.sessions.get(target.id())?.settledValue; |
| 183 | if (!init) { |
| 184 | throw new Error(`Expected to find pending init for target ${target.id()}`); |
| 185 | } |
| 186 | |
| 187 | if (init.setExceptionBreakpointsParams) { |
| 188 | await adapter.setExceptionBreakpoints(init.setExceptionBreakpointsParams); |
| 189 | } |
| 190 | for (const { params, ids } of init.setBreakpointsParams) { |
| 191 | await adapter.breakpointManager.setBreakpoints(params, ids); |
| 192 | } |
| 193 | await adapter.setCustomBreakpoints({ |
| 194 | xhr: init.xhrBreakpoints, |
| 195 | ids: init.customBreakpoints, |
| 196 | }); |
| 197 | await adapter.onInitialize(init.initializeParams); |
| 198 | await adapter.configurationDone(); |
| 199 | |
| 200 | await adapter.launchBlocker(); |
| 201 | init.deferred.resolve({}); |
| 202 | |
| 203 | return true; |
| 204 | } |
| 205 | |
| 206 | /** @inheritdoc */ |
| 207 | public releaseDap(target: ITarget): void { |
nothing calls this directly
no test coverage detected