Har*_*lse 14 remote-debugging winforms
我正在为用C#编写的标准Windows Forms应用程序设置Visual Studio远程调试会话.
在互联网上有很多关于如何设置远程计算机和MSVCMON.EXE的故事,但我找不到任何关于如何在我的计算机上做什么的故事,以确保我的程序在远程计算机上调试按START START DEBUGGING.
那么我该怎样做才能进行远程调试呢?
Har*_*lse 17
经过一些研究后,我发现了如何做到这一点,即使你在一家公司工作,这个公司在防火墙等方面存在很多安全问题.我需要IT部门唯一需要的是两台计算机上的管理员权限.
先决条件:
怎么做:
The msvsmon.exe program should now be waiting for new connections. The name of the server is something like "remote computer name" : "port number", for instance Prototype1:4016.
Now on the local computer where you will develop your program using Visual Studio do the following:
\\Prototype1\Users\Harald\Documents\CameraTestProgram\.Prototype1:4016.This method works if you want to debug a normal Windows Forms application written in C#. I detected that it even works if you use unsafe code. There are some warnings though if your program contains C++ code, but they can be ignored.
Microsoft links for this (worked October 2013, and still in August 2015):
Microsoft description on how to setup remote debugging. This link does not work anymore on June 2017.
Microsoft: how to set up remote debugging. It worked in June 2017
| 归档时间: |
|
| 查看次数: |
11299 次 |
| 最近记录: |