Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brandy125 opened this issue Jul 20, 2024 · 0 comments
Open

Comments

@brandy125
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant