Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spack debug option #87

Closed
cyrush opened this issue Aug 31, 2022 · 2 comments
Closed

add spack debug option #87

cyrush opened this issue Aug 31, 2022 · 2 comments

Comments

@cyrush
Copy link
Member

cyrush commented Aug 31, 2022

When things go wrong in spack land, the first request from spack folks is the stack trace obtained with:

spack --debug --stacktrace <command>

We should have a spack_debug option that allows users to easily find this info vs hacking it in.

@chapman39
Copy link
Collaborator

Currently we only debug a couple of spack commands (install and spec). Thoughts on adding the following code to the spack_exe() function instead? @cyrush @white238

debug = ""
if self.opts["spack_debug"]:
    debug = "--debug --stacktrace "
# Append debug to spack command

Otherwise this issue could probably be closed.

@white238
Copy link
Member

Yes please. I actually ran into this last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants