flexprop
flexprop copied to clipboard
Spin2 SCOPE & LOGIC debug options not working on MacOS
On MacOS (15.2 and earlier): Executing example DEBUG programs for the SCOPE & LOGIC options from the Parallax Spin2 Documentation results in no display of debug windows, an issue dialog and log data (see below for log & code example).
I'm not sure if these debug options are supported in flexprop, but I do see tcl code "debug_scope.tcl" in flexprop sources (Is this a Windows-only option?). Other debug options do work (PLOT, TERM)...
Possibly a Mac TCL problem?
invalid command name "::DebugWin::ScopeCmd"
invalid command name "::DebugWin::ScopeCmd"
while executing
"$debugcmd($cmd) $w $args"
(procedure "::DebugWin::RunCmd" line 26)
invoked from within
"::DebugWin::RunCmd [string range $line 1 end]"
(procedure "term_newline" line 14)
invoked from within
"term_newline"
("
" arm line 17)
invoked from within
"switch "$c" {
"\x1a" {
# ctrl-z
term_insert $c
}
"\r" {
set cur_saw_cr 1
if { "$kind" eq "ansi" } {
# (cr,) Go to..."
(procedure "term_recv" line 42)
invoked from within
"term_recv $c"
(procedure "::TkTerm::Terminal_Data" line 10)
invoked from within
"::TkTerm::Terminal_Data "
Code examples:
''
'' SCOPE debug example (from Propeller spin2 docs)
''
CON _clkfreq = 100_000_000
PUB go() | a, af, b, bf
debug(`SCOPE MyScope)
debug(`MyScope 'FreqA' -1000 1000 100 136 15 MAGENTA)
debug(`MyScope 'FreqB' -1000 1000 100 20 15 ORANGE)
debug(`MyScope TRIGGER 0 HOLDOFF 2)
repeat
a := qsin(1000, af++, 200)
b := qsin(1000, bf++, 99)
debug(`MyScope `(a,b))
waitus(200)
''
'' LOGIC debug example (from Propeller spin2 docs)
''
CON _clkfreq = 10_000_000
PUB go() | i
debug(`LOGIC MyLogic SAMPLES 32 'Low' 3 'Mid' 2 'High')
debug(`MyLogic TRIGGER $07 $04 HOLDOFF 2)
repeat
debug(`MyLogic `(i & 63))
i++
waitms(25)