This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197296

Summary: Custom breakpoints are ignored
Product: python Reporter: kenorb
Component: DebuggerAssignee: jymen <jymen>
Status: CLOSED WONTFIX    
Severity: normal CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: jpy debug file

Description kenorb 2011-03-31 20:00:55 UTC
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.
Maybe this?
    sys.exit(main(sys.argv[1:]))

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>
    sys.exit(main(sys.argv[1:]))
', 'SystemExit: 0

See attachment for details.
Comment 1 kenorb 2011-03-31 20:04:10 UTC
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:
sys.path.append("../worker")
from engine import run_game

Maybe that's why?
Comment 2 kenorb 2011-04-06 19:58:51 UTC
Maybe it's because my script uses subprocess module and the breakpoint is inside Sandbox?
Comment 3 Jenselme 2017-06-22 22:13:23 UTC
Should be solved with the new debugger when we add it. The debugger is currently disabled. Closing this since there is no point into importing it elsewhere.
Comment 4 Jiri Kovalsky 2017-06-23 08:06:05 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.