简体   繁体   English

远程调试客户端计算机

[英]Remote debugging client computer

I have problematic deployment of my application on some client computer. 我在某些客户端计算机上部署了我的应用程序。

I really need to see what is going with my application in the run time and my logging is not sufficient. 我真的需要看看我的应用程序在运行时发生了什么,我的日志记录还不够。

The computer is on separate network that I don't have any connection there from my office. 计算机在不同的网络上,我在办公室没有任何连接。

Is there some tool that can record the execution of my application? 是否有一些工具可以记录我的应用程序的执行情况? At least inputs outputs of functions? 至少输入功能输出?

Your hurdle here is that the target machine is on a remote disconnected network from your own, which makes use of the Visual Studio Remote Debugger tool useless (unless you're able to open firewall ports to the target machine, or establish some kind of VPN). 这里的障碍是目标机器与您自己的远程断开连接的网络,这使得Visual Studio远程调试器工具无法使用(除非您能够打开目标机器的防火墙端口,或建立某种VPN )。

Try The Remote Debugger, install a VPN client on your machine and theirs ( Hamachi is a good example), then the remote debugger should function ( docs on MSDN ). 尝试远程调试器,在您的机器上安装VPN客户端和他们的( Hamachi是一个很好的例子),然后远程调试器应该运行( MSDN上的文档 )。

I'd initate normal diagnostic measures 我会启动正常的诊断措施

  1. What's special about this machine compared to others that could interfear with normal function. 与其他能够兼顾正常功能的机器相比,这台机器有什么特别之处。
  2. Can you replicate the target environment. 你能复制目标环境吗?
  3. Is a stack trace available, does it contain any usefull values. 堆栈跟踪是否可用,是否包含任何有用的值。
  4. Can you deploy a version to the target that has additional value logging wrapped around the broken function (log all values before hitting the code that can cause the crash). 您是否可以将一个版本部署到目标,该目标具有围绕已损坏函数的附加值记录(在命中可能导致崩溃的代码之前记录所有值)。
  5. Visit the site with the target envirnment, and run the remote debugger from within their network. 访问与目标envirnment现场,并从他们的网络运行远程调试器。
  6. Install Visual Studio (and all your source code) on that target machine and debug from there (kind of extreme). 在该目标机器上安装Visual Studio(以及所有源代码)并从那里进行调试(极端)。

I have found mdbg most helpful in these situations. 我发现mdbg在这些情况下最有帮助。

Just copy it to a flash disk. 只需将其复制到闪存盘即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM