开发者

DEBUG does not work on all executables?

开发者 https://www.devze.com 2023-02-22 07:51 出处:网络
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

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?


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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消