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 163435

Summary: __file__ set improperly
Product: python Reporter: bbroder <bbroder>
Component: DebuggerAssignee: jymen <jymen>
Status: CLOSED WONTFIX    
Severity: blocker CC: Jenselme, pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description bbroder 2009-04-23 00:45:48 UTC
Builtin variable __file__ is set to jpydaemon.py (the debugger), and not to the file actually being debugged.
Comment 1 Petr Jiricka 2009-05-16 10:29:57 UTC
Is this a stopper bug? What does it mean in practice for the usability and usefulness of the debugger?
Comment 2 bbroder 2009-05-18 14:50:54 UTC
If something runs correctly outside of the debugger, but fails to run inside of the debugger, that to me is a complete 
fail for the usability and usefulness of a debugger.

In particular, the first few lines of Google App Engine (dev_appserver.py) use the __file__ builtin to strip out the path 
of the appserver module.  When run in the debugger, this gives them the path of the netbeans jpydaemon module instead.
Comment 3 Petr Jiricka 2009-05-29 13:13:07 UTC
I agree this is a nasty bug, but I think it is worth it to release an updated Early Access release even with this bug
present. Moving priority to P2.
Comment 4 Jenselme 2017-06-22 21:49:42 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 5 Jiri Kovalsky 2017-06-23 08:06:04 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.