Skip to content

Commit

Permalink
Merge branch 'fix/gdbgui' into 'master'
Browse files Browse the repository at this point in the history
Tools: gdbgui is not supported on Python 3.11

See merge request espressif/esp-idf!21277
  • Loading branch information
dobairoland committed Nov 29, 2022
2 parents 4b2ac6c + a816dfb commit e5de975
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/idf_py_actions/debug_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,12 @@ def gdbui(action: str, ctx: Context, args: PropertyDict, gdbgui_port: Optional[s
env['PURE_PYTHON'] = '1'
try:
process = subprocess.Popen(args, stdout=gdbgui_out, stderr=subprocess.STDOUT, bufsize=1, env=env)
except Exception as e:
except (OSError, subprocess.CalledProcessError) as e:
print(e)
if sys.version_info[:2] >= (3, 11):
raise SystemExit('Unfortunately, gdbgui is supported only with Python 3.10 or older. '
'See: https://github.com/espressif/esp-idf/issues/10116. '
'Please use "idf.py gdb" or debug in Eclipse/Vscode instead.')
raise FatalError('Error starting gdbgui. Please make sure gdbgui has been installed with '
'"install.{sh,bat,ps1,fish} --enable-gdbgui" and can be started.', ctx)

Expand Down

0 comments on commit e5de975

Please sign in to comment.