[buildcore] Add error message to pybb debug for missing debugger
All checks were successful
Build / build (push) Successful in 2m29s
All checks were successful
Build / build (push) Successful in 2m29s
This commit is contained in:
parent
227f3cd9f5
commit
d82c082256
3
deps/buildcore/scripts/pybb.py
vendored
3
deps/buildcore/scripts/pybb.py
vendored
@ -98,6 +98,9 @@ def debug(paths: List[str]) -> int:
|
||||
args = ['gdb', '--args']
|
||||
elif shutil.which('lldb') is not None:
|
||||
args = ['lldb', '--']
|
||||
else:
|
||||
sys.stderr.write('debug: could not find a supported debugger\n')
|
||||
return 1
|
||||
args.extend(paths)
|
||||
return subprocess.run(args).returncode
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user