断点在vb.net中不起作用 [英] Break point is not working in vb.net

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

问题描述





我这里有一个奇怪的。我正在使用VB.Net 2008.由于某种原因,我的断点不起作用。奇怪的是它似乎只影响一种形式。我可以在这个表单上放一个断点,它忽略它。甚至更改了一些代码,忽略它,即放入一个消息框。在其他形式上工作没问题。



我把脚放在显示器前的任何想法。 div class =h2_lin>解决方案

您好,



原因是由于某种原因您的源代码与原始版本不同。



要允许在源代码不同时点击断点,右键单击断点,选择位置...,然后启用允许源代码与原始版本不同。



要允许所有断点,请在工具,选项下禁用要求源文件与原始版本完全匹配选项,调试,一般。



希望这会有所帮助。


它看起来好像你已经运行旧版本的代码(上次成功运行)

只需按 Crtl + Shift + B 即可构建代码。

并检查是否有任何错误l在场。如果是,则解决。


一个有用的链接这里 [ ^ ]。


Hi,

I have a strange one here. I am using VB.Net 2008. For some reason my breakpoint is not working. Where it gets strange is that it only seems to be affecting one form. I can put a breakpoint on this form, it ignores it. Even changed some code, ignored it i.e. put a message box in. On the other forms works no problem.

Any ideas before I put my foot through the monitor.

解决方案

Hi,

The reason was that for some reason your source code is different from the original version.

To allow the breakpoint to be hit when the source code is different, you right click on the breakpoint, choose location..., and turn on Allow the source code to be differenet from the orginal version.

To allow this for all breakpoints, disable the option 'require source files to exactly match the original version' under Tools, Option, Debugging, General.

Hope this helps.


it look as if you have run Older version of code (last successful run)
Just Press Crtl + Shift + B for build the code.
and check if any error list present. if yes then solved.


A useful link here[^].


这篇关于断点在vb.net中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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