Skip to content

backtraces with --backtrace#33478

Merged
trws merged 2 commits intospack:developfrom
haampie:feature/--backtrace
Oct 24, 2022
Merged

backtraces with --backtrace#33478
trws merged 2 commits intospack:developfrom
haampie:feature/--backtrace

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Oct 23, 2022

Currently --debug is too verbose and not---debug gives too little
context about where exceptions are coming from.

So, instead, it'd be nice to have spack --backtrace and
SPACK_BACKTRACE=1 as methods to get something inbetween: no verbose
debug messages, but always a full backtrace on error.

This is useful for CI, where we don't want to drown in debug messages
when installing deps, but we do want to get details where something goes
wrong if it goes wrong.

Currently `--debug` is too verbose and not-`--debug` gives to little
context about where exceptions are coming from.

So, instead, it'd be nice to have `spack --backtrace` and
`SPACK_BACKTRACE=1` as methods to get something inbetween: no verbose
debug messages, but always a full backtrace.

This is useful for CI, where we don't want to drown in debug messages
when installing deps, but we do want to get details where something goes
wrong if it goes wrong.
@spackbot-app spackbot-app bot added the core PR affects Spack core functionality label Oct 23, 2022
@trws trws merged commit 7d99fbc into spack:develop Oct 24, 2022
@haampie haampie deleted the feature/--backtrace branch October 24, 2022 07:00
becker33 pushed a commit to RikkiButler20/spack that referenced this pull request Nov 2, 2022
* backtraces without --debug

Currently `--debug` is too verbose and not-`--debug` gives to little
context about where exceptions are coming from.

So, instead, it'd be nice to have `spack --backtrace` and
`SPACK_BACKTRACE=1` as methods to get something inbetween: no verbose
debug messages, but always a full backtrace.

This is useful for CI, where we don't want to drown in debug messages
when installing deps, but we do want to get details where something goes
wrong if it goes wrong.

* completion
charmoniumQ pushed a commit to charmoniumQ/spack that referenced this pull request Nov 19, 2022
* backtraces without --debug

Currently `--debug` is too verbose and not-`--debug` gives to little
context about where exceptions are coming from.

So, instead, it'd be nice to have `spack --backtrace` and
`SPACK_BACKTRACE=1` as methods to get something inbetween: no verbose
debug messages, but always a full backtrace.

This is useful for CI, where we don't want to drown in debug messages
when installing deps, but we do want to get details where something goes
wrong if it goes wrong.

* completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core PR affects Spack core functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants