Skip to content

Commit 9ac2df4

Browse files
committed
Update step run button logic and breakpoint handling
Modified ShowCurrentStepRunButtons to relax execution mode check, allowing buttons to display for ExecuteAndContinue mode. Added logic to set step execution mode to ExecuteAndContinue when a breakpoint is unchecked, with additional commented-out stepping mode options for future use.
1 parent c9dfc10 commit 9ac2df4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/core/src/AXOpen.Core.Blazor/AxoCoordination/AxoSequencer/AxoSequencerDebuggerView.razor.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public partial class AxoSequencerDebuggerView : RenderableComplexComponentBase<A
3131

3232
private bool ShowCurrentStepRunButtons =>
3333
Component.CurrentStep is not null
34-
&& Component.CurrentStep.StepExecutionMode.LastValue != (short)eAxoStepExecutionMode.ExecuteAndContinue
34+
//&& Component.CurrentStep.StepExecutionMode.LastValue != (short)eAxoStepExecutionMode.ExecuteAndContinue
3535
&& Component.CurrentStep.Status.LastValue == (short)eAxoTaskState.Ready;
3636

3737
private bool ShowCurrentStepRunning =>
@@ -124,7 +124,12 @@ private async Task ToggleBreakpointAsync(FlatAxoStepItem item, ChangeEventArgs a
124124
if (!isChecked)
125125
{
126126
if (item.Step.StepExecutionMode.LastValue != (short)eAxoStepExecutionMode.ExecuteAndContinue)
127+
{
127128
await item.Step.StepExecutionMode.SetAsync((short)eAxoStepExecutionMode.ExecuteAndContinue);
129+
130+
//await this.Component.SetReqSteppingMode.SetAsync(true);
131+
//await this.Component.ReqSteppingMode.SetAsync((short)eAxoSteppingMode.Continous);
132+
}
128133
}
129134

130135
StateHasChanged();

0 commit comments

Comments
 (0)