Debugger: Fix debugger state tracking.

[DEVELOPMENT ENVIRONMENT]
* BUG: Debugger: Fix debugger state tracking.
This commit is contained in:
Benoît Minisini 2022-12-15 14:55:38 +01:00
parent 94af499b8d
commit eef92cc2fa
2 changed files with 10 additions and 9 deletions

View file

@ -151,7 +151,6 @@ Private Sub SetState(iState As Integer)
If iState = $iState Then Return
$iState = iState
FOutput.OnProjectDebugState
FDebugInfo.OnProjectDebugState
@ -398,15 +397,17 @@ Public Sub Debug_Read(Data As String)
bLineChanged = SetCurrentLine(sComp, sClass, iLine)
Endif
If Not aData[1] And If bLineChanged And If Not sClass Then
If Not aData[1] Then
If Not bLineChanged Or If aPos.Count = 0 Then
If $bIgnoreNextInfo Then
$bIgnoreNextInfo = False
Else
Command("", STATE_RUNNING)
If $bIgnoreNextInfo Then
$bIgnoreNextInfo = False
Else
Command("", STATE_RUNNING)
Endif
Return
Endif
Return
Endif
FDebugInfo.DefineVariable(Trim(aData[3]), Trim(aData[4]))

View file

@ -176,7 +176,7 @@ End
Public Sub OnProjectDebugState()
txtEnter.ReadOnly = Design.IsRunning()
txtEnter.ReadOnly = Design.IsRunning()
If txtEnter.HasFocus Then trmOutput.SetFocus
If Design.IsStop() Then