#118 !EXCEPT=2

open
nobody
None
5
2011-12-28
2011-12-28
Sylwester Arabas
No

In IDL setting !EXCEPT=2 allows to track the line numbers where arithmetic error occur, e.g.:

GDL> $cat test.pro
pro test
print, 1/0
print, 'a'
end
GDL> test
% Program caused arithmetic error: Integer divide by 0
% Compiled module: TEST.
1
a
GDL> !EXCEPT=2
GDL> test
1
a

IDL> test
% Compiled module: TEST.
1
a
% Program caused arithmetic error: Integer divide by 0
IDL> !EXCEPT=2
IDL> test
1
% Program caused arithmetic error: Integer divide by 0
% Detected at TEST 2 /home/pracownicy/slayoo/test.pro
a

Discussion