diff options
| author | Steven Knight <knight@baldmt.com> | 2004-03-23 05:23:20 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2004-03-23 05:23:20 (GMT) |
| commit | bd136c4b1fe44da061910372d80b79c86a31d4e3 (patch) | |
| tree | 9f6d601ec3b50d626b2612a2230c81050d235d5e /src/engine/SCons/Script | |
| parent | bfbe139e5a5fd96dfa0319768ad9a0088a5e7e78 (diff) | |
| download | SCons-bd136c4b1fe44da061910372d80b79c86a31d4e3.zip SCons-bd136c4b1fe44da061910372d80b79c86a31d4e3.tar.gz SCons-bd136c4b1fe44da061910372d80b79c86a31d4e3.tar.bz2 | |
Add a --debug= option to print commands before substitution. (Gary Oberbrunner)
Diffstat (limited to 'src/engine/SCons/Script')
| -rw-r--r-- | src/engine/SCons/Script/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index 47fef2b..c59ce69 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -409,6 +409,8 @@ def _set_globals(options): memory_outf = sys.stdout elif options.debug == "objects": print_objects = 1 + elif options.debug == "presub": + SCons.Action.print_actions_presub = 1 elif options.debug == "time": print_time = 1 elif options.debug == "tree": @@ -492,7 +494,8 @@ class OptParser(OptionParser): "build all Default() targets.") def opt_debug(option, opt, value, parser): - if value in ["count", "dtree", "includes", "memory", "objects", "pdb", "time", "tree"]: + if value in ["count", "dtree", "includes", "memory", "objects", + "pdb", "presub", "time", "tree"]: setattr(parser.values, 'debug', value) else: raise OptionValueError("Warning: %s is not a valid debug type" % value) |
