I'm sorry if the title is confusing but I couldn't think of anything similar to call it. What I'm looking for is if there is any sort of tool (or eclipse plugin, etc) that will log all the translated lines from a program. For example:
int b = 20;
for (int x = 0; x < z; x++)
b = b + 5;
Would get translated into
b = 20
for (int x = 0; 0 < 50; 0++)
b = 20 + 5;
I ask because it seems it wouldn't be too difficult to implement relatively, since we can debug one line at a time and I think it would save an enormous amount of time. If you could just go through a log file and look for your error and check out exactly what line the problem occurred on and the context that caused it then debugging would be a lot easier. XDebug for PHP has function level traces so you can see the value of the variables passed in your program, and have that dumped to a log. I found that it saved me a large amount of debugging time. The problems were usually obvious and easy to fix then.
It would sure beat adding logging statements.
EDIT: I want to clarify that I am not looking for a traditional debugger ala Eclipse style. I'm simply looking for a overall logging of the variables and states.