Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 163435 - __file__ set improperly
__file__ set improperly
Product: python
Classification: Unclassified
Component: Debugger
All All
: P2 (vote)
Assigned To: jymen
Depends on:
  Show dependency treegraph
Reported: 2009-04-23 00:45 UTC by bbroder
Modified: 2017-06-23 08:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description bbroder 2009-04-23 00:45:48 UTC
Builtin variable __file__ is set to (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 ( 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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo