gdl
gdl copied to clipboard
debugging line does not show nested procedure if stop is in main program
Giving this two procedures the debugger should show the error in testb at line 3. It works if there is no stop in the testa but with stop it does not show even the procedure testb:
With stop:
bash$ gdl
GDL - GNU Data Language, Version v1.1.2_testing2-4-g0a492ae7
GDL> testa
% Compiled module: TESTA.
5
% Stop encountered: TESTA 4 /home/chris/testa.pro
GDL> .c
% Compiled module: TESTB.
6
% CD: Unable to change current directory to: donotexist.
% Execution halted at: TESTA 4 /home/chris/testa.pro
% $MAIN$
GDL>
Without stop:
bash$ gdl
GDL - GNU Data Language, Version v1.1.2_testing2-4-g0a492ae7
GDL> testa
% Compiled module: TESTA.
5
% Compiled module: TESTB.
6
% CD: Unable to change current directory to: donotexist.
% Execution halted at: TESTB 3 /home/chris/testb.pro
% TESTA 4 /home/chris/testa.pro
% $MAIN$
GDL>
Programs:
pro testa
print,5
;stop
testb
end
pro testb
print,6
cd,'donotexist'
end
GDL> !gdl
{
"RELEASE": "1.1.2_testing2-4-g0a492ae7",
"BUILD_DATE": "Apr 16 2025",
"EPOCH": 1744772400,
"GDL_USE_DSFMT": 1,
"GDL_USE_WX": 1,
"GDL_POSIX": 1
}
GDL>