Bug 163435 - __file__ set improperly
__file__ set improperly
Status: NEW
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: 2009-05-29 13:13 UTC (History)
1 user (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 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.

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