Using gdb

If a BornAgain Python script crashes, re-run under gdb.

Use the actual Python executable from the environment rather than an environment-manager shim. For example:

gdb --args path/to/venv/bin/python path/to/script.py

With an activated environment, find its executable with:

python -c 'import sys; print(sys.executable)'

On Debian, the python3-dbg package provides a debug build of Python.