Directly run when debuging.

This commit is contained in:
Sleepy Monax 2022-08-13 00:02:33 +02:00
parent 0bf7d35168
commit 164158f3fe

View file

@ -12,6 +12,7 @@ __version__="0.2.1"
CMDS = {} CMDS = {}
def parseOptions(args: list[str]) -> dict: def parseOptions(args: list[str]) -> dict:
result = { result = {
'opts': {}, 'opts': {},
@ -65,7 +66,7 @@ def debugCmd(opts: dict, args: list[str]) -> None:
print() print()
print(f"{utils.Colors.BOLD}Debugging: {args[0]}{utils.Colors.RESET}") print(f"{utils.Colors.BOLD}Debugging: {args[0]}{utils.Colors.RESET}")
utils.runCmd("/usr/bin/lldb", out, *args[1:]) utils.runCmd("/usr/bin/lldb", "-o", "run", out, *args[1:])
print() print()
print(f"{utils.Colors.GREEN}Process exited with success{utils.Colors.RESET}") print(f"{utils.Colors.GREEN}Process exited with success{utils.Colors.RESET}")