I run a program "dog.pb", this program pauses. Then I run "cat.pb" and at some point, I hit a break point, and step thru the code.
Unfortunately, I'm not really debugging cat, but rather dog.pb - I continue to step thru, dog is finished, despite be running cat 2nd and that's what had paused.
Is this normal?
shared module:{code=purebasic}
DeclareModule abc
Declare dog()
Declare cat()
EndDeclareModule
Module abc
Procedure dog()
Debug "in dog(), now run cat.pb"
CallDebugger
Debug "leaving dog()"
EndProcedure
Procedure cat()
Debug "in cat()"
CallDebugger
Debug "leaving cat()"
EndProcedure
EndModule
{/code]
dog.pb: (run 1st)
Code: Select all
XIncludeFile "module.pbi"
abc::dog()
Debug "DOG DONE"
; notice, dog.pb has been completed, cat.pb is still running, despite you were stepping thru "cat.pb" code.
Code: Select all
XIncludeFile "module.pbi"
Debug "Step thru code. Watch how dog.pb ends."
CallDebugger ; Step thru code
abc::cat()