x86上的x86远程调试器服务 [英] x86 Remote Debugger Service on x64

查看:148
本文介绍了x86上的x86远程调试器服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在64位机器上安装x86远程调试器作为服务?我需要在Session 0进程中将调试器附加到托管代码。该进程运行32位,但是安装的调试器服务是64位,不会附加到32位进程。

Is it possible to install the x86 Remote Debugger as a Service on a 64bit machine? I need to attach a debugger to managed code in a Session 0 process. The process runs 32bit but the debugger service that gets installed is 64bit and wont attach to the 32bit process.

我尝试使用SC命令创建服务,并且能够启动服务并验证它在任务管理器进程中运行。但是,当我尝试使用visual studio连接到它时,它表示远程调试器监视器未启用。当我停止x86服务,并启动了x64服务,它能够找到监视器,但仍然有一个错误。

I tried creating the Service using the SC command, and was able to get the service to start, and verified that it was running in Task manager processes. However, when I tried to connect to it with visual studio, it said that the remote debugger monitor wasn't enabled. When I stopped the x86 service, and started the x64 service and it was able to find the monitor, but still got an error.

这是我尝试的错误使用远程调试器:
无法附加到进程。 64位版本的Visual Studio远程调试监视器(MSVSMON.EXE)无法调试32位进程或32位转储。请使用32位版本。

Here is the error when I try to use the remote debugger: Unable to attach to the process. The 64-bit version of the Visual Studio Remote Debugging Monitor (MSVSMON.EXE) cannot debug 32-bit processes or 32-bit dumps. Please use the 32-bit version instead.

我尝试在本地附加时出现错误:
附加到不同终端服务器会话中的进程这台电脑不支持尝试远程调试到机器并在进程的会话中运行Microsoft Visual Studio远程调试监视器。

Here is the error when I try to attach locally: Attaching to a process in a different terminal server session is not supported on this computer. Try remote debugging to the machine and running the Microsoft Visual Studio Remote Debugging Monitor in the process's session.

如果我尝试运行32位远程调试器作为应用程序,它将不会工作附件b / c远程调试器在我的会话中运行,而不是在会话0中。

If I try to run the 32bit remote debugger as an application, it wont work attach b/c the Remote Debugger is running in my session and not in session 0.

推荐答案

TM)安装rdbgsetup_x64.exe并通过配置向导:

This works on my machine(TM) after installing rdbgsetup_x64.exe and going through the configuration wizard:

sc stop msvsmon90
sc config msvsmon90 binPath= "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86\msvsmon.exe /service msvsmon90"
sc start msvsmon90

这篇关于x86上的x86远程调试器服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆