mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
3b5c3d6521
Support for execution of asynchronous target, such as openocd, which by default runs in the background, but if it's the only target idf.py outputs the openocd in the console waiting for termination by user. Supports also blocking commands gdb and gdbtui to start a debugging session in an active console. Supports running gdbgui running a UI debugging session in a browser window, using the active console for other commands, such as openocd or monitor. Supports combining the debug targets in one action list, such as idf.py openocd gdbgui monitor
11 lines
443 B
Python
11 lines
443 B
Python
class FatalError(RuntimeError):
|
|
"""
|
|
Wrapper class for runtime errors that aren't caused by bugs in idf.py or the build process.
|
|
"""
|
|
def __init__(self, message, ctx=None):
|
|
super(RuntimeError, self).__init__(message)
|
|
# if context is defined, check for the cleanup tasks
|
|
if ctx is not None and "cleanup" in ctx.meta:
|
|
# cleans up the environment before failure
|
|
ctx.meta["cleanup"]()
|