在Delphi中更好的多线程调试 [英] Better multi-threaded debugging in the Delphi

查看:924
本文介绍了在Delphi中更好的多线程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从答案引导到关于Delphi IDE中的错误的另一个问题,有谁知道是否有办法改进IDE的多线程调试功能,否则,至少为什么它是如此糟糕场合?



当程序中有多个线程时,通过F7或F8的代码通常会导致很长的暂停,或者整个IDE只是锁定。当您离开或输入方法或程序时,这一点尤其明显。调试器对于单线程应用程序总是好的。



PS。我使用的版本是2007年

解决方案

从我的经验来看,使用Vista和Delphi 2009的多线程调试比XP更好Delphi 2007.



首先,ide更稳定。



其次,在Delphi 2009中,调试器可以显示出发生死锁的位置。



如果您必须使用Delphi 2007,我强烈建议您在单个线程单元测试中调试代码,如果可能,然后使用你现在在主程序中测试了代码。 ;)


Leading on from the answer to another question about bugs in the Delphi IDE, does anyone know if there is a way to improve the multi-threaded debugging functionality of the IDE, or if not, at least why it is so bad on occasion?

When you have multiple threads within a program, stepping through the code with F7 or F8 can often lead to either very long pauses, or the whole IDE just locks ups. This is especially apparent when you leave or enter a method or procedure. The debugger always seems to be fine for single threaded applications.

PS. The version I'm using is 2007

解决方案

From my experience multi threaded debugging is much nicer using Vista and Delphi 2009 than XP with Delphi 2007.

First, the ide is significantly more stable.

Second, in Delphi 2009 on vista the debugger can show you where deadlocks are occurring.

If you have to use Delphi 2007, I would strongly recommend debugging your code in a single threaded unit test if possible, then using your by now tested code in the main program. ;)

这篇关于在Delphi中更好的多线程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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