断点问题 [英] Break point issue
问题描述
我把一个破发点中的一个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:
- 您的解决方案中设置正确的启动项目
- 设置断点
- 按<大骨节病> F5
- 运行应用程序的地方你知道你的函数应该叫点
- 调试
- set correct startup project within your solution
- set breakpoint
- hit F5
- run your application to the point where you know your function should be called
- debug
如果您不能打<大骨节病> F5 骨节病>(无论何种原因)
If you can't hit F5 (for whatever reason)
- 运行应用程序
- 设置断点
- 连接到您的应用程序的进程(你会看到它在进程列表中)
- 在上面GOTO步骤#4
就是这样。
(如果这就是你问)的
That's it.
(if that's what you were asking)
这篇关于断点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!