@@ -272,6 +272,8 @@ function TDebugService.CanContinue(): boolean;
272
272
273
273
procedure TDebugService.Start (const AHost: string; const APort: integer; const ATimeOut: Int64);
274
274
begin
275
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.Start));
276
+
275
277
if not (FConnectionStatus in [TDebuggerConnectionStatus.OutOfWork, TDebuggerConnectionStatus.Stopped]) then
276
278
raise EDebuggerIsBusy.Create(' Debugger is busy' );
277
279
@@ -284,6 +286,8 @@ procedure TDebugService.Start(const AHost: string; const APort: integer; const A
284
286
285
287
procedure TDebugService.Stop ;
286
288
begin
289
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.Stop));
290
+
287
291
if (FConnectionStatus <> TDebuggerConnectionStatus.Started) then
288
292
raise EDebuggerNotStarted.Create(' Debugger is not started.' );
289
293
@@ -309,6 +313,8 @@ procedure TDebugService.Stop;
309
313
310
314
procedure TDebugService.Continue ;
311
315
begin
316
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.Continue));
317
+
312
318
var LContinue := TContinueRequest.Create();
313
319
try
314
320
LContinue.Arguments.SingleThread := false;
@@ -331,6 +337,8 @@ procedure TDebugService.Continue;
331
337
332
338
procedure TDebugService.Pause ;
333
339
begin
340
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.Pause));
341
+
334
342
var LPause := TPauseRequest.Create();
335
343
try
336
344
FDebugger.SendRequest<TPauseResponse>(
@@ -351,6 +359,8 @@ procedure TDebugService.Pause;
351
359
352
360
procedure TDebugService.StepIn ;
353
361
begin
362
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.StepIn));
363
+
354
364
var LStepIn := TStepInRequest.Create();
355
365
try
356
366
if FCurrentStoppedThreadId = 0 then
@@ -379,6 +389,8 @@ procedure TDebugService.StepIn;
379
389
380
390
procedure TDebugService.StepOver ;
381
391
begin
392
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.StepOver));
393
+
382
394
var LNext := TNextRequest.Create();
383
395
try
384
396
if FCurrentStoppedThreadId = 0 then
@@ -408,6 +420,8 @@ procedure TDebugService.StepOver;
408
420
409
421
procedure TDebugService.StepOut ;
410
422
begin
423
+ TGlobalBuilderChain.BroadcastEvent(TDebugActionEvent.Create(TDebugAction.StepOut));
424
+
411
425
var LStepOut := TStepOutRequest.Create();
412
426
try
413
427
if FCurrentStoppedThreadId = 0 then
0 commit comments