Skip to content
| Marketplace
Sign in
Visual Studio>Tools>winsrvdbg
winsrvdbg

winsrvdbg

jlabrou

|
371 installs
| (1) | Free
Windows Service debugger
Download

Windows Service debugger.

The extension is invoking only on DEBUG configuration(or DEBUG configuration descendants) through the code editor or the project's context menu in Solution Explorer.

The extension interacts with the shell and uses the sc command to [Install & Start] and [Stop & Uninstall] the windows service.

The service name in Services Console during the debugging session is the ServiceName property of theServiceBase class of the project.

Usage:

C#
Edit|Remove
csharp
protected override void OnStart(string[] args){#if DEBUG    System.Diagnostics.Debugger.Launch();#endif    base.OnStart(args);}
protected override void OnStart(string[] args){ #if DEBUG     System.Diagnostics.Debugger.Launch(); #endif     base.OnStart(args); }
Signal a breakpoint in attached debugger:
C#
Edit|Remove
csharp
#if DEBUG    System.Diagnostics.Debugger.Break();#endif
#if DEBUG     System.Diagnostics.Debugger.Break(); #endif 
 
Supported Languages:
  • C#, VB
Supported Versions:
    • Visual Studio 2015
      Supported Visual Studio 2015 Editions:
      • Visual Studio 2015 Community
      • Visual Studio 2015 Professional
      • Visual Studio 2015 Enterprise

      Version History

      v1.2

      * UAC manifest added to address privileges issue.

      v1.1

      * VB support added.

      * Handle projects that haven't been built yet.

      v1.0

      * Initial commit

      • Contact us
      • Jobs
      • Privacy
      • Manage cookies
      • Terms of use
      • Trademarks
      © 2025 Microsoft