gdl icon indicating copy to clipboard operation
gdl copied to clipboard

stopped line information is wrong if while loop does not contain a command

Open brandy125 opened this issue 1 year ago • 0 comments

This program reports line 0 and 4 if ".so" is applied

pro doit
stop
print,'5'
while 1 do begin & endwhile
end
GDL> .so
5
% Stepped to: DOIT                 4 /home/chris/doit.pro
GDL> .so
% Stepped to: DOIT                 0 /home/chris/doit.pro
GDL> .so
% Stepped to: DOIT                 4 /home/chris/doit.pro
GDL> .so
% Stepped to: DOIT                 0 /home/chris/doit.pro

If the while loop contains any command then the reported line is ok:

pro doit
stop
print,'5'
while 1 do begin & wait,0.1 & endwhile
end
GDL> .so
5
% Stepped to: DOIT                 4 /home/chris/doit.pro
GDL> .so
% Stepped to: DOIT                 4 /home/chris/doit.pro
GDL> .so
% Stepped to: DOIT                 4 /home/chris/doit.pro

brandy125 avatar Jul 20 '24 15:07 brandy125