Changeset 128 for trunk/Forms/UFormMain.pas
- Timestamp:
- Jan 17, 2022, 4:53:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r126 r128 334 334 var 335 335 Title: string; 336 CanDebug: Boolean; 336 337 begin 337 338 Title := ''; … … 352 353 AProgramCompile.Enabled := (tcCompile in Core.CurrentTarget.Capabilities) and 353 354 Core.Project.Openned; 354 AProgramStepInto.Enabled := (tcStepInto in Core.CurrentTarget.Capabilities) and 355 Core.Project.Openned and ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 356 AProgramStepOut.Enabled := (tcStepOut in Core.CurrentTarget.Capabilities) and 357 Core.Project.Openned and (Core.CurrentTarget.State = rsPaused); 358 AProgramRunToCursor.Enabled := (tcRunToCursor in Core.CurrentTarget.Capabilities) and 359 Core.Project.Openned and ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 360 AProgramStepOver.Enabled := (tcStepOver in Core.CurrentTarget.Capabilities) and 361 Core.Project.Openned and ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 362 AProgramShowExecutionPoint.Enabled := (tcPause in Core.CurrentTarget.Capabilities) and 363 Core.Project.Openned and (Core.CurrentTarget.State = rsPaused); 355 CanDebug := Core.DebugEnabled and Core.Project.Openned and 356 ((Core.CurrentTarget.State = rsPaused) or (Core.CurrentTarget.State = rsStopped)); 357 AProgramStepInto.Enabled := CanDebug and (tcStepInto in Core.CurrentTarget.Capabilities); 358 AProgramStepOut.Enabled := CanDebug and (tcStepOut in Core.CurrentTarget.Capabilities); 359 AProgramRunToCursor.Enabled := CanDebug and (tcRunToCursor in Core.CurrentTarget.Capabilities); 360 AProgramStepOver.Enabled := CanDebug and (tcStepOver in Core.CurrentTarget.Capabilities); 361 AProgramShowExecutionPoint.Enabled := CanDebug and (tcPause in Core.CurrentTarget.Capabilities); 364 362 AShowSourcePosition.Enabled := Core.CurrentTarget.Compiled; 365 363 AShowTargetPosition.Enabled := Core.CurrentTarget.Compiled; … … 568 566 if Core.CurrentTarget.State = rsStopped then begin 569 567 if not Core.CurrentTarget.Compiled then AProgramCompile.Execute; 570 Core.CurrentTarget.BreakPoints.SetSystem( TDebugStep(Core.CurrentTarget.DebugSteps.First).ProgramPosition);568 Core.CurrentTarget.BreakPoints.SetSystem(Core.CurrentTarget.DebugSteps.First.ProgramPosition); 571 569 AProgramRun.Execute; 572 570 end else Core.CurrentTarget.StepInto;
Note:
See TracChangeset
for help on using the changeset viewer.