Re: [pete] pcan wiki
- Posted by irv Feb 10, 2021
- 1189 views
said...
The program will then run until the condition (i=1234) is met, before single-stepping through the subsequent code.
This somewhat implies that you can set a condition on a variable (i, in this case), turning it on when a variable reaches a certain value. That would be nice, if true.
But I can't test it at all, because trace() doesn't work on Linux:
with trace trace(1) for i = 1 to 10 do ?i end for
pDiagN.e line 3064: oops, rtn[=9184] out of range[1..1402] pDiagN.e line 3322: symtab[420] bad S_NTyp[3] {-1,3,0,8194,0,0,1,0,-54,0,1,1,0,0,0} "sleep(5)..." pDiagN.e line 3064: oops, rtn[=9637] out of range[1..1402] pDiagN.e line 3064: oops, rtn[=9730] out of range[1..1402] /home/irv/test1.ex:-1 (era=#007EC91A, from_addr=#0, ret_addr=#0) attempt to divide by 0The ever-informative ex.err:
pDiagN.e line 3322: symtab[420] bad S_NTyp[3] /home/irv/test1.ex:-1 (era=#007EC91A, from_addr=#0, ret_addr=#0) attempt to divide by 0 Global & Local Variables /home/irv/test1.ex: i = <novalue>
So much for the "always provides useful error messages and line numbers" - I can't find a line -1 in my program anywhere. Maybe it fell off the screen?