我无法在代码中添加断点 [英] I cannot put break points in my code

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

问题描述

名称空间已选中
   已检查模块
       昏暗检查为布尔值
       昏暗的登录名1作为新登录名
       朋友WithEvents chkbox1作为CheckBox
       公共属性显示为对象

       私有子chkbox_Click(作为对象发送,作为RoutedEventArgs发送)处理chkbox1.Checked
           如果chkbox1.IsChecked然后

                Login1.show()
           如果结束
       结束子

   终端模块
结束命名空间

Namespace checked
    Module Checked
        Dim checked As Boolean
        Dim Login1 As New Login
        Friend WithEvents chkbox1 As CheckBox
        Public Property show As Object

        Private Sub chkbox_Click(sender As Object, e As RoutedEventArgs) Handles chkbox1.Checked
            If chkbox1.IsChecked Then

                Login1.show()
            End If
        End Sub

    End Module
End Namespace

上面的代码似乎不起作用.因此,我想单步执行代码,但是无法在代码中添加断点.他们似乎没有工作.执行并不会在我尝试设置断点的地方停止

The code above does not seem to be working. Therefore, I want to step through the code but I cannot put break points in my code. They don't seem to work. Execution does not stop where I have tried to put break points

Chandrasekharan K

Chandrasekharan K

推荐答案

Chandrasekharan K,

Hi Chandrasekharan K,

>>(1)因此,我想单步执行代码,但是无法在代码中放置断点.他们似乎没有工作.

>>(1)Therefore, I want to step through the code but I cannot put break points in my code. They don't seem to work.

>>(2)在尝试放置断点的地方执行不会停止.

>>(2)Execution does not stop where I have tried to put break points.

不调试您的应用程序,如果您使用无需调试就启动(Ctrl + F5)"运行应用程序,会收到任何已编译的错误消息吗?您是否在其他VS机器上测试了同一项目?

Not debug your app, if you run your app using "start without debugging(Ctrl+F5)", do you get any compiled error messages? Do you test the same project in other VS machine?

我的理解是,您可以立即添加断点,但不会被击中,如果这样,您将检查它是否具有编译错误,还请在调试期间将鼠标放在添加断点的代码行上,您将获得更多信息. 请确保这不是符号加载问题或其他问题.

My understanding is that you could add the breakpoint now, but not be hit, if so, you would check that whether it has the compiled error, please also put the mouse on the code line where you add the breakpoint during debugging time, you would get more information. Please make sure that it is not the symbols loaded issue or others.

最好的问候,

Jack


这篇关于我无法在代码中添加断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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