.. _configuration:

PyStim Configuration
====================

This class provides a set of methods to control PyStim configuration.

Exception printing control
--------------------------

* **enable_exception_printing()** – Enables printing of Python exceptions to the HDL simulator console. Use this method to turn on detailed debugging output when a Python error occurs.

* **disable_exception_printing()** – Disables printing of Python exceptions to the console. Useful if exception output is not needed or is obscuring other messages.

Simulation flow control on exception
-------------------------------------

* **stop_on_exception()** – Configures the simulator to halt execution when a Python exception occurs. Recommended for catching critical errors that should terminate the simulation.

* **continue_on_exception()** – Configures the simulator to continue execution despite encountering a Python exception. This can be used to allow the simulation to proceed when exceptions are non-critical.
