summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-16 16:08:09 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-16 16:08:09 -0800
commit6b6a82c14711e9cc889e9c7453b5a25db078ef29 (patch)
tree146d4e8a30478b870ea0e1308c23bf676142eaa7
parent85c02dbe7b0e6ab4f63ec2b747c688ed430a754b (diff)
parent107c0dd1a8f56c92e02a78b258bdf5ccabf6a277 (diff)
downloadspack-6b6a82c14711e9cc889e9c7453b5a25db078ef29.tar.gz
spack-6b6a82c14711e9cc889e9c7453b5a25db078ef29.tar.bz2
spack-6b6a82c14711e9cc889e9c7453b5a25db078ef29.tar.xz
spack-6b6a82c14711e9cc889e9c7453b5a25db078ef29.zip
Merge pull request #246 from LLNL/features/245-pdb-debug
added option to enable pdb debug
-rwxr-xr-xbin/spack5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index ec6a80ff02..a0b260ccaf 100755
--- a/bin/spack
+++ b/bin/spack
@@ -89,6 +89,8 @@ spec expressions:
parser.add_argument('-d', '--debug', action='store_true',
help="Write out debug logs during compile")
+parser.add_argument('-D', '--pdb', action='store_true',
+ help="Run spack under the pdb debugger")
parser.add_argument('-k', '--insecure', action='store_true',
help="Do not check ssl certificates when downloading.")
parser.add_argument('-m', '--mock', action='store_true',
@@ -159,5 +161,8 @@ def main():
if args.profile:
import cProfile
cProfile.run('main()', sort='tottime')
+elif args.pdb:
+ import pdb
+ pdb.run('main()')
else:
main()