This is an example of debugging a script with the console mode interactive debugger.
dbgcontest.sba = 1
b = "ScriptBasic"
PRINT a,"\n"
PRINT b,"\n"
pi@raspberrypi:~/sbrpi $ scriba dbgcon.sb dbgcontest.sb
Application: ScriptBasic Remote Debugger
Version: 1.0
Source-File-Count: 1
Source-File: dbgcontest.sb
Current-Line: 1
-> l 1-
[0001] a = 1
[0002] b = "ScriptBasic"
[0003] PRINT a,"\n"
[0004] PRINT b,"\n"
Current-Line: 1
-> s
Current-Line: 2
-> b4
Message: done
Current-Line: 2
-> r
1
Current-Line: 4
-> G
Global-Variable-Name: main::a
Global-Variable-Value: 1
Global-Variable-Name: main::b
Global-Variable-Value: "ScriptBasic"
Current-Line: 4
-> r
ScriptBasic
Debug session closed.
pi@raspberrypi:~/sbrpi $
Place the
sdbg.so in your /usr/local/lib/scriba directory.
The
dbgcon.sb script should be in the same directory as the script you're debugging.