stacktrace
dev_tool.tui.stacktrace
__all__ = ['StacktraceCollectionInterface', 'StacktraceInterface']
module-attribute
StacktraceCollectionInterface
A class for displaying a list of stored stacktraces in the TUI.
This class provides a view for browsing and selecting stacktraces from the current session.
The constructor for the StacktraceListInterface class.
Parameters:
-
terminal(Terminal) –The blessed Terminal instance.
Source code in dev_tool/tui/stacktrace/collection.py
offset = 0
instance-attribute
selected_index = 0
instance-attribute
service = StacktraceService()
instance-attribute
terminal = terminal
instance-attribute
draw_list
A method that draws the stacktrace list view.
Source code in dev_tool/tui/stacktrace/collection.py
get_selected_entry
A method that gets the currently selected stacktrace entry.
Returns:
-
StacktraceEntry | None–The selected entry, or None if no entries exist.
Source code in dev_tool/tui/stacktrace/collection.py
handle_input
A method that handles input for the stacktrace list interface.
Parameters:
-
key(str) –The key name.
Returns:
-
str | None–The navigation result or None to continue.
Source code in dev_tool/tui/stacktrace/collection.py
StacktraceInterface
A class for displaying scrollable stacktrace content in the TUI.
This class provides a dedicated view for viewing full stacktraces with scrolling support.
The constructor for the StacktraceInterface class.
Parameters:
-
terminal(Terminal) –The blessed Terminal instance.
Source code in dev_tool/tui/stacktrace/interface.py
content = None
instance-attribute
copied = False
instance-attribute
offset = 0
instance-attribute
terminal = terminal
instance-attribute
draw_stacktrace
A method that draws the stacktrace view with the current content.
Source code in dev_tool/tui/stacktrace/interface.py
handle_input
A method that handles input for the stacktrace interface.
Parameters:
-
key(str) –The key name.
Returns:
-
str | None–The navigation result or None to continue.
Source code in dev_tool/tui/stacktrace/interface.py
set_content
A method that sets the stacktrace content to display.
Parameters:
-
content(str) –The stacktrace string.