Windbg、cdb无法查询远程调试服务器
我在一台计算机上运行 dbgsrv 没有遇到任何问题,然后从另一台计算机使用 cbb 通过
cdb -premote tcp:server=ipaddress,port=port 连接到远程会话进程
但是由于某种原因,我无法使
cdb -QR ipaddress
工作来显示服务器。即使服务器运行在同一台机器上,防火墙关闭,运行
cdb -QR 127.0.0.1
也会返回
Unable to query 127.0.0.1
同样的windbg >连接到远程存根>浏览也无法返回任何内容。
连接到远程会话
另外,虽然我可以使用Windbg -premote tcp:server=ipaddress,port=port process
,但我无法使用Windbgs“连接到远程存根”使用连接字符串
tcp:server=ipaddress,port=port process
连接到同一个会话任何想法是什么导致我无法查询服务器会话?另外,为什么我可以从命令行进行连接,但不能使用“连接到远程存根”从 Windbg 内进行连接?
PS 这可能也应该标记为 dbgsrv,但没有这样的标记。
PPS 我想使用 dbgsrv 而不是 .server 命令的原因是我想解析本地计算机上的符号和源。
I have no trouble running dbgsrv on one machine, and then from another machine using cbb to attach to the remote session with
cdb -premote tcp:server=ipaddress,port=port process
However for some reason I can't make
cdb -QR ipaddress
work to show the server. Even with the server running on the same machine, firewall off, running
cdb -QR 127.0.0.1
returns
Unable to query 127.0.0.1
Similarly windbg > Connect To Remote Stub > Browse also fails to return anything.
Also, while I can connect to the remote session using
windbg -premote tcp:server=ipaddress,port=port process
I can't use windbgs "Connect to remote stub" to connect to the very same session using connection string
tcp:server=ipaddress,port=port process
Any idea what is causing me to not be able to query for server sessions? Also why can I connect from the command line, but not from within windbg using Connect To Remote Stub?
P.S. This should probably also be tagged dbgsrv, but there is no such tag.
P.P.S. The reason I want to use dbgsrv rather than .server command is that I want to resolve symbols and source on my local machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正确的语法是
cdb -QR \\127.0.0.1
当使用windbg>时连接到远程存根>浏览,在“机器”字段中输入要浏览的计算机的 IP 地址,然后单击“刷新”
The correct syntax is
cdb -QR \\127.0.0.1
When using windbg > Connect To Remote Stub > Browse, Enter the IP address of the computer you want to browse in the Machine field before clicking on Refresh