summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGregory L. Lee <lee218@cab687.llnl.gov>2015-12-16 15:54:15 -0800
committerGregory L. Lee <lee218@cab687.llnl.gov>2015-12-16 15:54:15 -0800
commit107c0dd1a8f56c92e02a78b258bdf5ccabf6a277 (patch)
tree63cf3d5b1d4b24aef427fe16932039bb1a14f57b /bin
parent9cab88071bd0de9703ace476c13ab926c16d338b (diff)
downloadspack-107c0dd1a8f56c92e02a78b258bdf5ccabf6a277.tar.gz
spack-107c0dd1a8f56c92e02a78b258bdf5ccabf6a277.tar.bz2
spack-107c0dd1a8f56c92e02a78b258bdf5ccabf6a277.tar.xz
spack-107c0dd1a8f56c92e02a78b258bdf5ccabf6a277.zip
added option to enable pdb debug
Diffstat (limited to 'bin')
-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()