Delphi 2010中其他线程的执行点 [英] Execution point for other threads in Delphi 2010

查看:124
本文介绍了Delphi 2010中其他线程的执行点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi 2010(使用出色的OmniThreadLibrary)开发多线程客户端应用程序,并且由于要不断地从一个线程切换到另一个线程,因此调试工作很困难.

I'm developing a multithreaded client app using Delphi 2010 (using the excellent OmniThreadLibrary) and I'm having hard time with debugging since I'm constantly swapping from one thread to another.

我想知道是否有可能(使用任何工具或插件,我不在乎!)不仅为当前线程,而且为所有其他线程找到当前执行点.

I wonder if it's possible (using whatever tool or plugin, I don't care!) to find the current execution point, not just for the current thread, but for all the other threads as well.

一个简单的示例/报告:

A simplistic example/report:

Thread #1 stopped at line #5
Thread #2 stopped at line #25 (<-- breakpoint set here, causing Delphi to stop)
Thread #3 stopped at line #78

我的目标是查看" Delphi在某个断点处停止时其他线程在做什么,而不仅仅是使用日志(或不太有用的线程12345停止了),而是检查它们是否好像断点在其处停止了一样他们.

My goal is to "see" what the other threads are doing when Delphi stops at a certain breakpoint, not just using logs (or the not-so-helpful Thread 12345 stopped), but inspect them as if the breakpoint stopped at them.

我希望我的问题很清楚,请注意,这里已经是午夜了,所以如果我的问题听起来很愚蠢,请不要怪我!

I hope my question is clear enough, please note it's past midnight here so don't blame me if my question sounds stupid!

推荐答案

如果我对您的理解正确,那么应该可以在断点(Ctrl-Alt-T)时打开线程窗口,然后只需双击任何线程即可查看其当前执行位置.

If I'm understanding you correctly, you should be able to bring up the thread window while at a break-point (Ctrl-Alt-T) and then just double-click any thread to see where it's currently executing.

这篇关于Delphi 2010中其他线程的执行点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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