如何正确调试我的程序 [英] how to get my program debug correctly

查看:53
本文介绍了如何正确调试我的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用断点运行我的代码时,我得到了这个DISASSEMBLY代码向我显示.....它实际上并没有显示.cs代码



代码哪个向我展示了一些像......

When i run my code with break point i got this DISASSEMBLY code showing to me.....it's not actually showing .cs code

the code which was showing me is some thing like..

     edx,edx
mov         dword ptr [ebp-48h],edx
xor         edx,edx
mov         dword ptr [ebp-40h],edx
xor         edx,edx
mov         dword ptr [ebp-64h],edx
xor         edx,edx
mov         dword ptr [ebp-6Ch],edx
xor         edx,edx
mov         dword ptr [ebp-58h],edx
nop
mov         eax,dword ptr ds:[13A92184h]
mov         dword ptr [ebp-40h],eax
mov         eax,dword ptr ds:[13A92184h]
mov         dword ptr [ebp-44h],eax
mov         ecx,dword ptr ds:[13AD7114h]
call        517ACB10
mov         dword ptr [ebp-7Ch],eax
cmp         dword ptr [ebp-7Ch],0
je          000000C3
mov         eax,dword ptr [ebp-7Ch]
cmp         dword ptr [eax],72D8F50Ch
jne         000000B4
mov         eax,dword ptr [ebp-7Ch]
jmp         000000C1
mov         edx,dword ptr [ebp-7Ch]
mov         ecx,72D8F50Ch
call        5323EB28
jmp         000000C6
mov         eax,dword ptr [ebp-7Ch]
mov         dword ptr [ebp-48h],eax
mov         ecx,dword ptr [ebp-48h]
mov         eax,dword ptr [ecx]
mov         eax,dword ptr [eax+38h]
call        dword ptr [eax+8]
mov         dword ptr [ebp-80h],eax
cmp         dword ptr [ebp-80h],0
je          000000FC
mov         eax,dword ptr [ebp-80h]
cmp         dword ptr [eax],72D93F68h
jne         000000ED
mov         eax,dword ptr [ebp-80h]
jmp         000000FA
mov         edx,dword ptr [ebp-80h]
mov         ecx,72D93F68h
call        5323EB28
jmp         000000FF
mov         eax,dword ptr [ebp-80h]
mov         dword ptr [ebp-4Ch],eax
mov         ecx,dword ptr [ebp-4Ch]



如何制作这个不要告诉我当我在下一步击中F11的断点时.....


how to make this to do not show me when i am hitting F11 for break point next step.....

推荐答案

从这个很难说 - 很可能您正在尝试调试不包含调试信息的发布版本,并且已经优化了IL代码 - 但这是本机代码,而不是IL,因此可能是您已经进入外部本机模块,而不是正常的代码。



看看你正在调试的代码究竟是什么样的,看看它是否可能在一个单独的程序集中。如果是这样,请尝试更改引用以引用项目而不是程序集DLL / EXE文件,因为这可能有助于获取调试版本而不是发布。



但是没有更多信息,我们就不能再精确了。
From just that it's difficult to say - it is quite likely that you are trying to debug the release version which doesn't contain debugging info, and has optimised IL code - but that is native code, not IL, so it may be that you have stepped into an external, native, module rather than your "normal" code.

Have a look at exactly what the code you are debugging looks like, and see if any of it is likely to be in a separate assembly. If so, try changing your references to refer to the project instead of the assembly DLL / EXE file as that may help pick up the debug version instead of release.

But without more info, we can't be any more precise.


这篇关于如何正确调试我的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆