Skip to content

Exception

debug = config.add_param('exception-debugger', False, 'whether to debug exceptions raised in Pwndbg commands') module-attribute

verbose = config.add_param('exception-verbose', False, 'whether to print a full stacktrace for exceptions raised in Pwndbg commands') module-attribute

handle(name='Error')

Displays an exception to the user, optionally displaying a full traceback and spawning an interactive post-moretem debugger.

Notes
  • set exception-verbose on enables stack traces.
  • set exception-debugger on enables the post-mortem debugger.

inform_report_issue(exception_msg)

Informs user that he can report an issue. The use of caching makes it reporting only once for a given exception message.

inform_unmet_dependencies(errors)

Informs user about unmet dependencies

inform_verbose_and_debug()

print_exception(exception_msg)

set_trace()

Enable sane debugging in Pwndbg by switching to the "real" stdio.

update()