Reputation: 9940
I have Windows 7 installed on my PC. I am learning C and assembly language together. I use codeblock IDE for writing C codes and emu8086 for assembly codes. I am able to DEBUG the assembly codes from DOS prompt, but not the C codes. Why so? I select console application option while writing C codes. they run well on their own from DOS prompt, but not through DEBUG mode. I intend to observe the machine code and the symbolic assembly code created by the C compiler. I was assuming that Using DEBUG I should be able to trace the execution of all executable files, after all that is the purpose of DEBUG. Isn't it?
Upvotes: 0
Views: 97
Reputation: 490518
You probably want to download Microsoft's Debugging tools for Windows and use Windbg (or the debugger that undoubtedly came with whatever compiler you're using).
Upvotes: 1
Reputation: 48696
If a program is not compiled with debug symbols (virtually every program is not), you will not see c or other source code when debugging it. You will only see the lowest level, and that is assembly.
Upvotes: 1