是否可以仅侦听定向到某个调试端口的调试器? [英] Is it possible to listen only debugger directed to a certain debugport?

查看:66
本文介绍了是否可以仅侦听定向到某个调试端口的调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是本文将调试输出从虚拟OS重定向到命名管道通过VMWare在我的客户端操作系统上运行.当我按照该文章中所述使用WinDbg时,它可以完美工作创建我自己的应用程序以捕获此调试输出-仅捕获而已,仅此而已.当我只从管道(模拟的串行端口)监听时,我得到的数据毫无意义.

I'm trying to connect to the VMWare's pipe; what is in fact simulated serial port where I've redirected debug output from the virtual OS. I used this article to redirect debug output from the virtual OS to the named pipe on my client OS through the VMWare. It works perfectly when I use the WinDbg as decribed in that article but I want to create my own application to catch this debug output - only to catch, nothing else. When I'm only listening from the pipe (that simulated serial port) I'm getting meaningless data.

仅从远程调试器读取(重定向到某个调试端口)就足够了吗?还是应该对它使用某种协议(以确认读取内容或其他内容)?换句话说;我可以只听管道(串行端口)而没有任何响应吗?

Is it enough to only read from the remote debugger (redirected to a certain debugport) or should I use some protocol for it (to acknowledge reading or something) ? In other words; may I only listen to the pipe (serial port) without any response to it ?

感谢您的任何建议
问候

Thanks for any suggestions
Regards

推荐答案

输出的数据并非毫无意义,但必须根据所使用的特定协议进行解析.如果您不是在发送命令而是仅在读取输出信息,那么它就足以侦听(尽管我不知道该协议是否需要消息的确认).

The data coming out is not meaningless but it has to be parsed based on the particular protocol used. If you are not sending commands but just reading output information it should be enough to just listen (though I do not know off hand if the protocol requires acknowledgement of messages).

但是,必须根据收到的消息来解析收到的内容.我从来没有尝试过自己解析调试信息,但是此页面应该为您提供有关该协议的信息.

However, what you receive will have to be parsed based on the messages you are getting. I've never tried to parse the debug information on my own but this page should give you some information on the protocol.

这篇关于是否可以仅侦听定向到某个调试端口的调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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