jga
11 years agoNew Contributor
Call Stack inside a Try Catch
All my call stack is lost, when my code is inside a Try Catch
e.g.
1 procedure main()
2 begin
3 try
4 //My full Testcase here
5 if obj.value = ' test' then //->value not exists
6 DoSomting;
7 except
8 Log.Error('MyErrorMessage')
9 end;
10 end;
In the call stack i see only two lines
Test Unit Name LineNr
Main myTest.sd 8 ->Only the Except block
Why a lot of callstack information lost in a try catch block!!!!
if i dont use the try except block i get a lot more informations
in the call stack.
e.g.
1 procedure main()
2 begin
3 try
4 //My full Testcase here
5 if obj.value = ' test' then //->value not exists
6 DoSomting;
7 except
8 Log.Error('MyErrorMessage')
9 end;
10 end;
In the call stack i see only two lines
Test Unit Name LineNr
Main myTest.sd 8 ->Only the Except block
Why a lot of callstack information lost in a try catch block!!!!
if i dont use the try except block i get a lot more informations
in the call stack.