Skip to content

C# 使用 VS 调试 Windows Service

使用 InstallUtil.exe 安装服务

powershell
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe  {Full Path}\{Service EXE Name}.exe

启动 Service

powershell
net start {Service Name}

使用 VS 调试

VS=>调试=>附加到进程 (快捷键 Ctrl+Alt+P),选择服务的进程,然后打上断点就可以正常 Debug 了.

卸载和关闭 Service 的命令

powershell
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe -u {FullPath}\{Service EXE Name}.exe

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.