Closed Bug 431574 Opened 17 years ago Closed 12 years ago

Dehydra/Treehydra: debug option for include()

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dmandelin, Unassigned)

Details

This is entirely non-pressing, but I wanted to stick it out here to see if anyone else wants it and if people would want it to live in the main code or not. It's just something I find myself adding ad-hoc printfs for fairly often, and I think it's a fairly standard feature for runtimes. What I'm asking for is a debug option under which a message would be printed for every include statement showing the argument and the file it was resolved to. Something like: dehydra: include('foo.js') -> mydir/blah/foo.js It would also be good to have a more verbose option that prints out the search path. As yet, I have no opinion on how to activate the option. To work fully, it has to be enabled before the user's script is running, so I guess a config file might be the way to go.
Is sys.include_path not enough to show the search path? As for the resolved path, should just store that path in _includedArray.
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.