【发布时间】:2017-12-20 03:19:28
【问题描述】:
我将文件从 Visual Studio 2017 远程调试器复制到使用 nano 服务器运行的 windows docker 映像中。使用正确的参数在无头模式下运行 MSVSMon.exe 后,没有任何反应。没有进程在运行,应用程序日志中也没有生成错误。为什么 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
【问题讨论】:
-
和这个问题类似吗? stackoverflow.com/questions/36420337/…
标签: docker visual-studio-debugging nano-server