Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am new to cpp.
When I debug a program, is it possible to see each stages of its execution like ?...

characater mapping...

To be more precise, can I see each stage of executions listed in below link ?

Phases of Translation[^]
Posted
v3

No!

The two operations you are talking about are done at different times: you program is compiled before it is debugged (even if you are using a JIT system, the line is compiled before the debugger gets anywhere near it)

They are different processes and you can't do one while the other occurs.
 
Share this answer
 
Comments
thegameiswar 6-Mar-13 9:40am    
Thanks Griff for your time on this,

As you mentioned ,they are two different processes,Can I execute step by step compilation of these each stages.
OriginalGriff 6-Mar-13 10:31am    
No - AFAIK there is no way to see "interim stage" outputs of a compiler - the chances are that with most compilers they are internal and memory based anyway for speed and never see the light of day.
IMO, you do not want to see that, it will be mostly computer generated gibberish.

It will not help you at all when debugging normal user code.

In some very rare instances, it might be useful to generate the assembly code for some very small portion of the code to help debug specific problems that might happen when compiler optimization do something weird.
 
Share this answer
 
Comments
thegameiswar 6-Mar-13 9:41am    
Just to examine how it looks
Maximilien 6-Mar-13 10:01am    
I don't think you can see it with the Visual Studio Compiler (check the different compilation options); it might be possible with gcc/g++ (have a look at this : http://stackoverflow.com/questions/9169380/what-are-gccs-passes-and-invoked-programs )
okishore7 6-Mar-13 10:10am    
thanks to all
Maybe not what you are looking for, but this Article Comes in handy. It's cool:

10+ powerful debugging tricks with Visual Studio[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900