调试正在进行的.net进程 [英] Debugging an ongoing .net process

查看:98
本文介绍了调试正在进行的.net进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编写的程序中有一个相当烦人的错误,只有当程序运行时,程序才会冻结,而没有调试器附加。工作线程保持活动,但是主线程冻结,窗口将窗口淡出白色,并告诉我程序没有响应。



有没有办法附加调试器到正在进行的.net进程,以确切地发现主线程被冻结的方法?

解决方案

您可以使用调试>附加到进程选项。



它将列出所有进程,并选择您的进程开始调试。






I have a rather annoying bug in a program I'm writing which only ever manifests itself as the program freezing when it is run without the debugger attached. Worker threads stay alive but the main thread freezes and windows fades the window out to white and tells me the program isn't responding.

Is there a way to attach a debugger to an ongoing .net process to discover exactly which method the main thread is frozen in?

解决方案

You can attach the debugger using Debug > Attach to Process option.

It will list all the processes and you select your process to start debugging.

这篇关于调试正在进行的.net进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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