Skip to content

Commit 506766e

Browse files
committed
[iOS] Activate breakpoints after attaching by sending Debugger.setBreakpointsActive
1 parent 992a550 commit 506766e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/debug-adapter/connection/iosConnection.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,13 @@ export class IosConnection implements INSDebugConnection {
158158
public attach(filePath: string): Promise<void> {
159159
Logger.log('Attempting to attach to path ' + filePath);
160160
return utils.retryAsync(() => this._attach(filePath), 6000)
161-
.then(() => this.sendMessage('Debugger.enable'))
162-
.then(() => this.sendMessage('Console.enable'))
163-
.then(() => { });
161+
.then(() => {
162+
Promise.all<WebKitProtocol.Response>([
163+
this.sendMessage('Debugger.enable'),
164+
this.sendMessage('Console.enable'),
165+
this.sendMessage('Debugger.setBreakpointsActive', {active: true})
166+
]);
167+
});
164168
}
165169

166170
public _attach(filePath: string): Promise<void> {

0 commit comments

Comments
 (0)