在Delphi 7中绕过OutputDebugString? [英] Bypass OutputDebugString in Delphi 7?

查看:151
本文介绍了在Delphi 7中绕过OutputDebugString?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以绕过OutputDebugString吗?我希望OutputDebugString输出显示在DebugView中,而不是在内部的Delphi Event Viewer窗口中显示.但是我找不到告诉Delphi不要吞下OutputDebugString的方法.有什么想法吗?

I'm wondering if it's possible to bypass the OutputDebugString? I'd like the OutputDebugString output showing up in DebugView and not in the internal Delphi Event Viewer window. But i can't find a way to tell Delphi not to swallow the OutputDebugString. Any ideas?

致谢

推荐答案

这是不可能的.

OutputDebugString将字符串发送到调试器(顾名思义).每个进程只能有1个活动的调试器.您可以在Delphi下运行您的应用程序-Delphi收到了消息,因为它是调试器.您可以在Delphi外部运行应用程序-DebugView可以访问它们,因为没有调试器要求它.

OutputDebugString sends string to debugger (as its name suggests). There can be only 1 active debugger per process. You run your application under Delphi - Delphi got the messages, since its a debugger. You run your application outside Delphi - DebugView can access them, since no debugger claimed it.

但是:为什么,您需要吗?只需在Delphi事件日志中禁用其他类型的事件-您将获得与DebugView相同的功能.

However: WHY do you need this? Just disable other types of events in Delphi event log - and you'll get the same functionality as DebugView has.

这篇关于在Delphi 7中绕过OutputDebugString?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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