debugger_modal module

class DebugInspector(inputs, states, func=<function DebugInspector.default_func>)

Bases: object

DebugInspector is a class that creates a modal for debugging purposes.

It displays the inputs and states passed to the class, as well as the arguments passed to the function. It also provides a toggle button to open and close the modal.

Parameters:
  • inputs (list[str])

  • states (list[str])

  • func (Callable[[...], Any])

callbacks()

Set up the callbacks for the DebugInspector modal.

It includes a toggle button to open and close the modal, and a function to display the inputs and states passed to the class.

Return type:

None

default_func()

Default function to be called when the debugger is triggered.

It simply returns the arguments passed to it as a Plaintext object.

Return type:

Plaintext

Parameters:

args (Any)

layout()

Create the layout for the DebugInspector modal.

Returns:

The layout for the DebugInspector modal.

Return type:

html.Div