docker - Docker Windows Nanoserver 容器中的 Visual Studio 2017 远程调试器无法启动

标签 docker visual-studio-debugging nano-server

我将文件从 Visual Studio 2017 Remote Debugger 复制到使用 nano 服务器运行的 windows docker 镜像中。使用正确的参数以 headless 模式运行 MSVSMon.exe 后,没有任何 react 。没有进程在运行,应用程序日志中也没有生成错误。为什么 MSVSMon.exe 无法启动?

官方网站 (https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging#bkmk_configureService) 上没有关于如何以非交互方式将程序设置为服务的说明。那么,由于 nano 服务器没有 ui,我将如何将其作为服务启动?

PS C:\debug\vs_remotetools> .\msvsmon.exe /noauth /anyuser /silent /nostatus 
/noclrwarn /nosecuritywarn /nofirewallwarn
/nowowwarn /timeout:36000

PS C:\debug\vs_remotetools> get-process

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
  0       5     1136       4752       2.20   1348   1 CExecSvc
  0       3     1704       2900       0.09   1888   1 cmd
  0       5      588       1936       7.19    916   1 csrss
  0       0        0          4                 0   0 Idle
  0      18     3532      10804       5.86    992   1 lsass
  0      42    52284      76844       9.50    596   1 powershell
  0      43    89044     115712      17.83   1452   1 powershell
  0      40    47668      72196      22.05   1704   1 powershell
  0       8     1312       5004       4.36    972   1 services
  0       2      284       1116       1.39    876   0 smss
  0       7     1488       5720       1.42    496   1 svchost
  0      12     1564       6104       2.53    780   1 svchost
  0      14    10436      14828       9.08   1036   1 svchost
  0      14     7900      16480      11.75   1068   1 svchost
  0       9     1948       6448       1.08   1136   1 svchost
  0      32     5864      15468       7.89   1160   1 svchost
  0      15     4356      13252       5.52   1324   1 svchost
  0       0      128        136      23.03      4   0 System
  0       7      808       4116       1.95    944   1 wininit

最佳答案

关于docker - Docker Windows Nanoserver 容器中的 Visual Studio 2017 远程调试器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45112855/

相关文章:

docker - `dotnet test`捕获使输出困惑的垃圾字符-需要删除

docker - 在构建阶段将环境变量从 docker-compose 传递到容器

docker - 可以在启动docker时通过传递的env变量配置kafka连接器吗?还是 curl 是唯一的方法?

visual-studio-2010 - 向 system.webServer.httpErrors 添加 401 自定义错误会产生 "Unable to start debugging on the web server"错误

.net - 重新执行错误:退出状态1:输出:ProcessUtilityVMImage\UtilityVM:系统找不到指定的路径

docker - 使用 Deployment 在 kubernetes 中模拟守护进程集

raspberry-pi - Raspberry Pi - Windows 10 IoT - Visual Studio 调试器旧版本(来自 PC V.S)

docker - 无法访问 Docker Nanoserver 容器 Web 应用程序

.net - WCF 可以托管在 Windows Nano Server 2016 上吗?

visual-studio - Visual Studio 调试时出现极端滞后峰值