Created attachment 107413 [details]
jpy debug file
Debugger works till main code is executed.
That means some of the files can't be debugged by breakpoints.
Probably there is one piece of code which tricks debugger.
Basically what happen, I'm going step by step, and in some step, it showing me green line (like debugger stopped on breakpoint), but the output produces script output (as it's run) and when it's finish, I've following error:
>>>System Exit REQUESTED BY DEBUGGEE =0['Traceback (most recent call last):
', ' File "/Users/kenorb/projects/ants/aichallenge/ants/playgame.py", line 156, in <module>
', 'SystemExit: 0
See attachment for details.
Basically it's this line:
result = run_game(game, bots, engine_options, round)
when I go inside (F7) it, execution automatically continue the execution ignoring the debugger.
Definition of that function:
def run_game(game, botcmds, options, gameid=0):
File is loaded in different way that usually:
from engine import run_game
Maybe that's why?
Maybe it's because my script uses subprocess module and the breakpoint is inside Sandbox?