summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2015-12-18 13:00:43 +0100
committeralalazo <massimiliano.culpo@googlemail.com>2015-12-18 13:00:43 +0100
commitdfbf1b2205a50d887b85645dd1b78535250f40e5 (patch)
tree66bf2556c2b81e6a70287f37062988898cccc625 /bin
parent8dc32aeedb569400dffdd352ae7dcbeaa6c43635 (diff)
parent3198522a7f2dab6bee33bb3be3d3738fe8c7c1f9 (diff)
downloadspack-dfbf1b2205a50d887b85645dd1b78535250f40e5.tar.gz
spack-dfbf1b2205a50d887b85645dd1b78535250f40e5.tar.bz2
spack-dfbf1b2205a50d887b85645dd1b78535250f40e5.tar.xz
spack-dfbf1b2205a50d887b85645dd1b78535250f40e5.zip
Merge branch 'develop' of https://github.com/alalazo/spack into packages/tau
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()