断点问题 [英] Break Point Problem

查看:103
本文介绍了断点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

断点在vb.net Windows窗体中没有命中

break point is not hitting in vb.net windows form

推荐答案

尝试将断点放在构造函数的第一条语句中.如果在该处停止,则永远不会执行您在其中设置断点的代码,并且如果不执行该代码,则调试器将不会在该处停止.
Try putting a breakpoint at the first statement in the constructor. If it stops there, the code you set the breakpoint on is never being executed, and if it''s not executed, the debugger won''t stop there.


检查:

1)您是否正在运行调试版本:屏幕顶部会显示Debug或Release.确保您正在运行调试.

2)使用F5在调试器中执行,而不是SHIFT + F5

3)断点位于您将以已知方式到达的一行可执行代码中.如有疑问,请将其放在Click处理程序(或您使用的任何方法)的顶部,并逐步执行.
Check:

1) Are you running the debug version: top of the screen, it will say Debug or Release. Ensure you are running debug.

2) Use F5 to execute in debugger, not SHIFT+F5

3) Your breakpoint is on a line of executable code that you will reach in a known way. If in doubt, put it at the top of your Click handler (or whatever you are using) and single step through.


可能是当前不会命中断点"的情况. ."

如果是这样,
1)关闭您的项目.删除Bin和Obj.
2)打开项目.清洁溶液,然后重新构建.

在此处查看更多 [
It could be the case of "The breakpoint will not currently be hit."

If so,
1) Close your project. Remove Bin and Obj.
2) Open project. Clean Solution and then rebuild it.

Check here for more[^]


这篇关于断点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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