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

Env Variable: AMREX_DEBUG #4165

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Sep 23, 2024

Summary

Introduce control of backtrace handling and exception throwing via the environment variable AMREX_DEBUG.

This is very handly when running CI/CD and IDE workflows to quickly debug a failing test without overwriting default init parameters.

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

Introduce control of backtrace handling and exception throwing via
the environment variable `AMREX_DEBUG`.

This is very handly when running CI/CD and IDE workflows to quickly
debug a failing test without overwriting default init parameters.
@ax3l ax3l force-pushed the topic-env-control-debugging branch 4 times, most recently from 5412429 to d33c36a Compare September 23, 2024 23:44
@ax3l ax3l mentioned this pull request Sep 23, 2024
5 tasks
Introduce control of backtrace handling and exception throwing via
the environment variable `AMREX_DEBUG`.

This is very handly when running CI/CD and IDE workflows to quickly
debug a failing test without overwriting default init parameters.
@ax3l ax3l force-pushed the topic-env-control-debugging branch from d33c36a to 06e4f30 Compare September 23, 2024 23:47
system::exename.clear();
// system::verbose = 0;
system::regtest_reduction = false;
system::signal_handling = true;
system::signal_handling = !amrex_debug;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, I cannot track memory violations in gdb:

gdb -ex r -ex bt --args warpx ...

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

Successfully merging this pull request may close these issues.

1 participant