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 csharpprotected 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:
Supported Versions:
Supported Visual Studio 2015 Editions:
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 |