From c7ceb1bc992744c1c5f2c4132af953553f3662e3 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 3 May 2024 22:58:36 -0500 Subject: [PATCH] [buildcore] Add error message to pybb debug for missing debugger --- scripts/pybb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/pybb.py b/scripts/pybb.py index 1036d7e..4286089 100755 --- a/scripts/pybb.py +++ b/scripts/pybb.py @@ -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