断点问题 [英] Break point issue

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

问题描述

我把一个破发点中的一个WinForms应用程序的一个函数里像

I am putting a break point in a winforms application inside a function like

public void FillOutListViewCtrl()
{
    // code to be debugged
}

我把一个断点在这里。运行该应用程序后,我只是想知道究竟是什么这个功能里面发生。有没有什么办法去这个功能直接?我是否需要附加到任何进程,以实现这一目标?

I put a breakpoint here. After running the application I just want to know what exactly is going on inside of this function. Is there any way to go to this function directly? Do I need to attach to any process to achieve this?

项目采用的是复杂的类层次结构,我想知道解决我的问题的最好的方式。 <罢我不知道换去这个函数中的任何负责任的行动,虽然这个项目很大,有一个大的类层次结构。

Project uses a complex class hierarchy and I would like to know the best possible way to solve my problem. I don't know of any responsible action for going inside this function though this project is large with a large class hierarchy.

推荐答案

您不需要做什么特别的事情。只需按以下步骤操作:

You don't need to do anything special. Just follow these steps:

  1. 您的解决方案中设置正确的启动项目
  2. 设置断点
  3. 按<大骨节病> F5
  4. 运行应用程序的地方你知道你的函数应该叫点
  5. 调试
  1. set correct startup project within your solution
  2. set breakpoint
  3. hit F5
  4. run your application to the point where you know your function should be called
  5. debug

如果您不能打<大骨节病> F5 (无论何种原因)

If you can't hit F5 (for whatever reason)

  1. 运行应用程序
  2. 设置断点
  3. 连接到您的应用程序的进程(你会看到它在进程列表中)
  4. 在上面GOTO步骤#4

就是这样。
(如果这就是你问)

That's it.
(if that's what you were asking)

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

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