Exceptions¶
- final class ntoseye.Exceptions¶
The stop policy for each exception (
dbg.exceptions,sx*).- __iter__() Iterator[ExceptionPolicy]¶
- property module_events: list[ModuleEventPolicy]¶
The module load and unload filters (
sx* ld[:<module>]andsx* ud[:<module>]), in the order that you set them. Iterating overdbg.exceptionsgives only the exception policies.
- reset() None¶
Remove all configured policies and module load and unload filters, so ordinary exceptions break by default and module loads and unloads do not stop (
sxr).
- set(code: int | str, *, mode: Literal['break', 'second_chance', 'notify', 'ignore'] | None = None, command: str | None = None, disposition: Literal['break', 'handled', 'not_handled'] | None = None) ExceptionPolicy¶
Set how the debugger handles an exception, by NTSTATUS code or WinDbg alias (
av,bpe, …), and return its policy.modeisbreak(the default),second_chance,notifyorignore.commandruns at the event;dispositionthen breaks, or continues the exception as handled or not handled, and defaults to whatmodedoes. For a module load or unload filter, useset_module_event.
- set_module_event(event: Literal['ld', 'ud'], module: str | None = None, *, mode: Literal['break', 'second_chance', 'notify', 'ignore'] | None = None, command: str | None = None) ModuleEventPolicy¶
Set a filter for a kernel module load (
ld) or unload (ud), and return it.modulelimits it to one image (a case-insensitive name; the extension is optional, and*/?globs match); without it, the filter applies to every image.modeisbreak(the default; a load stops after ntoseye lists the module and arms its deferred breakpoints, an unload while the image is still listed),notify(aModLoad:orUnload modulenotice, then the target continues), orsecond_chanceorignore(it continues).commandruns at the stop, so only withbreak. A named filter has precedence over a bare one.