From d82c082256f5ad3cc0f7b2b3842072b6d036ee05 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 --- deps/buildcore/scripts/pybb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/buildcore/scripts/pybb.py b/deps/buildcore/scripts/pybb.py index 1036d7e4..42860895 100755 --- a/deps/buildcore/scripts/pybb.py +++ b/deps/buildcore/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