Added a new sub in an activity and MODIFIED the call sub delayed in a service to use it instead of another sub - All while rapid debugger was running. It allowed me to do it but did not call the new routine until I stopped the debugger and recompiled.
B4X:
'In Service_Destroy - changed the Sub
CallSubDelayed2(Main, "UpdateDlgDisplay", LastExc)
'ADDED to Activity while debugger was running
Public Sub UpdateDlgDisplay(Msg As String)
If Not(DlgPanel.visible) Then
DlgDisplay(Msg)
Else
DlgLbl.text = Msg
End If
End Sub
This is NOT a complaint! This program is AWESOME. Just thought you should know.
This is not a bug. It is a limitation. When you update the code at runtime the code is not retroactively updated. CallSub and CallSubDelayed (unlike direct calls) depend on an internal list of subs that is created when the program starts.