Skip to content
Snippets Groups Projects
Commit 107c0dd1 authored by Gregory L. Lee's avatar Gregory L. Lee
Browse files

added option to enable pdb debug

parent 9cab8807
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,8 @@ spec expressions: ...@@ -89,6 +89,8 @@ spec expressions:
parser.add_argument('-d', '--debug', action='store_true', parser.add_argument('-d', '--debug', action='store_true',
help="Write out debug logs during compile") 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', parser.add_argument('-k', '--insecure', action='store_true',
help="Do not check ssl certificates when downloading.") help="Do not check ssl certificates when downloading.")
parser.add_argument('-m', '--mock', action='store_true', parser.add_argument('-m', '--mock', action='store_true',
...@@ -159,5 +161,8 @@ def main(): ...@@ -159,5 +161,8 @@ def main():
if args.profile: if args.profile:
import cProfile import cProfile
cProfile.run('main()', sort='tottime') cProfile.run('main()', sort='tottime')
elif args.pdb:
import pdb
pdb.run('main()')
else: else:
main() main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment