Delphi trace tool
Posted
by Max
on Stack Overflow
See other posts from Stack Overflow
or by Max
Published on 2009-12-28T14:32:57Z
Indexed on
2010/06/08
22:52 UTC
Read the original article
Hit count: 281
I was wondering if there's a tool or a component for Delphi that can trace method execution line by line and create a log file. With this kind of tool it is easy to compare how method performs on two sets of input data by comparing two log files.
EDIT:
Let's say there is a function
10: function MyFunction(aInput: Integer): Integer;
11: begin
12: if aInput > 10 then
13: Result := 10
14: else
15: Result := 0;
16: end;
I'm looking for a tool that would give the log which whould be similar to the following:
When aInput parameter is 1:
Line 10: 'function MyFunction(aInput: Integer): Integer;'
Line 11: 'begin'
Line 12: 'if aInput > 10 then'
Line 15: 'Result := 0;'
Line 16: 'end;'
and when aInput parameter is 11:
Line 10: 'function MyFunction(aInput: Integer): Integer;'
Line 11: 'begin'
Line 12: 'if aInput > 10 then'
Line 13: 'Result := 10;'
Line 16: 'end;'
The only information that should be required by the tool is the function name.
It's like stepping through the method under debugger, but in an automatic manner with logging every line of code.
© Stack Overflow or respective owner