bcc
bcc copied to clipboard
Debug: "return Func()"-containing function ignored in debug stack
SuperStrict
Framework Brl.StandardIO
Function Test1:Int()
Print "hi"
Test2()
End Function
Function Test2:Int()
Return Test3()
End Function
Function Test3:Int()
DebugStop
End Function
Test1()
Debugstack just lists "Test1()" and then "Test3()". Same happens if I extend Test2:Int()
to do more.
But if I first of all fetch the result of the function call instead of straight returning it, then the debugstack is correct:
SuperStrict
Framework Brl.StandardIO
Function Test1:Int()
Print "hi"
Test2()
End Function
Function Test2:Int()
Local res:Int = Test3()
Return res
End Function
Function Test3:Int()
DebugStop
End Function
Test1()