是否可以只监听指向某个调试端口的调试器?
我是尝试连接到VMWare的管道;实际上是模拟串行端口,我在其中重定向了虚拟操作系统的调试输出。我使用本文将调试输出从虚拟操作系统重定向到命名管道通过 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
出来的数据并非毫无意义,但必须根据所使用的特定协议进行解析。如果您不发送命令而只是读取输出信息,那么只需监听就足够了(尽管我不知道协议是否需要消息确认)。
但是,您收到的内容必须根据您收到的消息进行解析。我从未尝试过自己解析调试信息,但是 此页面 应该为您提供一些有关协议的信息。
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.