Euphoria
Ticket #735:
Configurable size of ctrace.out
-
Reported by
mattlewis
Dec 08, 2011
Currently, ctrace.out is limited to 500 lines. For big programs, it is very easy to lose the critical bit of information required for debugging.
It would be useful to have a command line option to specify the number of lines in the ctrace.out file. As each line takes 120 characters, and disks are generally measured in GB, the 500 line restriction is very small.
Details
1. Comment by mattlewis
Dec 20, 2011
See: hg:euphoria/rev/20444fc69c47
changeset: 5374:20444fc69c47 parent: 5371:7257dcd473e0 user: Matt Lewis date: Tue Dec 20 06:52:40 2011 -0500 files: docs/release/4.1.0.txt docs/using_euphoria.txt include/euphoria.h source/backend.e source/be_machine.c source/be_runtime.c source/be_runtime.h source/cominit.e source/compile.e source/execute.e source/global.e source/msgtext.e description:
- added command line switch -trace-lines to specify the size of the ctrace.out file
- fixes ticket 735
2. Comment by ne1uno
Dec 21, 2011
change to fixed confirm,
with trace
trace(3)
when translating, get error
Warning :
<0217>:: Statements have been inserted to trace execution of your program.
main-.c:355:5: error: 'trace_lines' undeclared (first use in this function)
main-.c:355:5: note: each undeclared identifier is reported only once for each f
in main-.c
trace_lines = 500;
3. Comment by mattlewis
Dec 21, 2011
ne1uno,
I believe that for some reason, your translation was using an older version of include/euphoria.h. That was added in the referenced change set.
4. Comment by ne1uno
Dec 21, 2011
that was it, thanks. great improvement.