commit 1563d7156e8cce85d6de6e6fea970970c45d09c5
parent 4fe7cf18165d9cd7488f4b10bae3a9d67c6721cc
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date: Sat, 30 Dec 2023 13:19:17 -0300
Added guard to don't debug when backend didn't provided symbols
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/main.go b/main.go
@@ -128,6 +128,10 @@ func main() {
}
if debug {
+ if sym == nil {
+ log.Println("Debugging is not supported for the selected backend.")
+ os.Exit(1)
+ }
// Hello fellow Acme user. Plumb this: debugger.go:/debugMachine
debugMachine(m, sym, code)
} else {