为什么在调试程序时我的线程处于死机或停止状态 [英] why my thread is in dead or stoped state when am debugging my program

查看:93
本文介绍了为什么在调试程序时我的线程处于死机或停止状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的程序中使用线程,并且在使用它并对其进行调试时,由于主线程无法正常运行我的程序,主线程正处于停止或死机状态
任何人都可以帮我解决一下,即使启动了我的线程也为什么会进入那种状态.

Am using threads in my program and while using it and debuging it the primary thread is going into stoped or dead state due to which am not able to run my program properly
can any one help me out why is my thread going into that state even though it is started.

推荐答案

调试将停止程序及其所有程序的执行." s线程.

对于多线程应用程序,最好先使用日志记录来查看发生的情况,然后在调试器中调试问题区域.

用于Log4net的小型直接替换 [ http://logging.apache.org/log4net/ [
Debugging will stop the execution of your program and all it''s threads.

For multi-threaded applications it is better to use logging to see what is going on first, then debug the problem area in a debugger.

Mini Drop-in Replacement for log4net[^]

http://logging.apache.org/log4net/[^]


这篇关于为什么在调试程序时我的线程处于死机或停止状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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