@@ -13,15 +13,18 @@ local client = server:accept()
1313
1414local commands = {
1515 ' load auto/test.lua' , -- load Lua script and start debugger
16- ' over' , ' over' , ' step' , ' over' , ' setb - 15' , ' run' ,
16+ ' over' , ' over' , ' step' , ' over' , ' setb auto/test.lua 15' , ' run' ,
1717 ' reload' , -- reload the same script; breakpoints/watches still stay
1818 ' run' ,
1919 {' eval tab.foo' , 2 , " this should fail" }, -- should display "not ok"
2020 {' eval tab.bar' , 2 , " this should work" }, -- should display "ok"
2121 ' exec old_tab = tab' , ' exec tab = 2' , ' eval tab' ,
2222 ' exec tab = old_tab' , ' eval tab.foo' , ' run' ,
23- ' eval tab.foo' , ' delb auto\\ test.lua 15' , -- this removes breakpoint set with "setb - 15"
23+ ' eval tab.foo' ,
24+ ' listb' ,
25+ ' delb auto\\ test.lua 15' , -- this removes breakpoint set with "setb - 15"
2426 ' setw tab.foo == 32' ,
27+ ' listw' ,
2528 ' stack' ,
2629 ' basedir foo' , -- set `foo` as the current basedir
2730 ' basedir' ,
@@ -31,7 +34,7 @@ local commands = {
3134
3235local test = 0
3336local curfile , curline = ' ' , ' '
34- while # commands do
37+ while # commands > 0 do
3538 local command = table.remove (commands , 1 )
3639 local expected
3740 if type (command ) == ' table' then
0 commit comments