简体   繁体   English

Visual Studio 2010调试器

[英]Visual Studio 2010 Debugger

I'm having some problems (as some of you will see from another question I asked) with getting a program I made in Visual Studio 2010 to run on another computer. 我在Visual Studio 2010中制作的程序要在另一台计算机上运行时遇到了一些问题(正如您中的一些人会从另一个问题中看到的那样)。 My computer is Windows 7 x64 The destination computer is Windows XP x86 (SP2) 我的计算机是Windows 7 x64目标计算机是Windows XP x86(SP2)

I've already checked to see that I'm compiling for x86. 我已经检查过我正在为x86进行编译。

Anyway, my question is: Is there a debugger I can install that will tell me what errors the program is having? 无论如何,我的问题是:是否可以安装调试器来告诉我程序有什么错误? Like a .NET Debugger that does not involve me installing Visual Studio 2010 on the destination computer? 像.NET调试器一样,不需要在目标计算机上安装Visual Studio 2010?

If you have access to the client computer when it is running the program, the easiest thing would probably be to deploy the remote debugger , and debug the program on your own machine, while it is running on the client PC. 如果您在运行客户端程序时可以访问该客户端计算机,那么最简单的方法可能是部署远程调试器 ,并在客户端计算机上运行该程序时在您自己的计算机上调试该程序。

Otherwise, you can use DbgClr , which is distrubted with the .NET framework SDK. 否则, 您可以使用DbgClr ,它与.NET Framework SDK无关。

One option is to use WinDbg + the SOS extension. 一种选择是使用WinDbg + SOS扩展。 This is a much lighter weight debugger that is easily installable but has a steeper learning curve than Visual Studio. 这是一个重量轻得多的调试器,易于安装,但学习曲线比Visual Studio陡。 I often use it though when I need a light weight debugging experience 我经常在需要轻量级调试经验时使用它

Another option is to use a program like ProcDump to take several snapshot dumps of your program on the remote computer and USB copy them to debug back at your workstation. 另一个选择是使用ProcDump之类的程序在远程计算机上对程序进行几次快照转储,并通过USB复制它们以在工作站上进行调试。

http://technet.microsoft.com/en-us/sysinternals/dd996900.aspx http://technet.microsoft.com/zh-CN/sysinternals/dd996900.aspx

You can save a dump at various triggers like an Unhandled exception. 您可以在各种触发器(如未处理的异常)中保存转储。 Visual Studio can open the dump back at your workstation and 2010 supports mixed mode debugging. Visual Studio可以在您的工作站上打开转储,并且2010支持混合模式调试。

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

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