Tertsi
05-05-2006, 06:40 AM
I'm sick of compiler debug modes not working or not being as useful as they could be.
Not to mention it would be nice to have the same debug mode with all compilers of Mac, Windows and Linux.
From my task list:
You might want to make a custom debug-trace mode which is enabled by #define TRACE.
All commands would then be logged along with all variables' values, including if pointers' pointed address is NULL or something else and their pointed values.
- It would have to be something invisible to the coder so a macro of some sort would have to hide the trace command names of each row of each file.
- It might be difficult to make, it would make things slow, force a huge .exe file size increase and all variables would have to be initialized or it would have to only tell the variable values if they've been initialized.
This would somehow need to make a logging command where ever there's a normal command, for example with something like (I don't remember if that example works):
#define T(x) x Log->Write(#x); // This after working would only tell which code got executed and in what order, but not tell variable values.
T(++Variable;)
--------
So I'm curious if someone has done something like this before or if there's some custom debugger like this available for free.
Not to mention it would be nice to have the same debug mode with all compilers of Mac, Windows and Linux.
From my task list:
You might want to make a custom debug-trace mode which is enabled by #define TRACE.
All commands would then be logged along with all variables' values, including if pointers' pointed address is NULL or something else and their pointed values.
- It would have to be something invisible to the coder so a macro of some sort would have to hide the trace command names of each row of each file.
- It might be difficult to make, it would make things slow, force a huge .exe file size increase and all variables would have to be initialized or it would have to only tell the variable values if they've been initialized.
This would somehow need to make a logging command where ever there's a normal command, for example with something like (I don't remember if that example works):
#define T(x) x Log->Write(#x); // This after working would only tell which code got executed and in what order, but not tell variable values.
T(++Variable;)
--------
So I'm curious if someone has done something like this before or if there's some custom debugger like this available for free.