Search code examples
c#.netdllvisual-studio-debugging

VS Debug DLL invoked from system service


I am developing a DLL (in Visual C# Express) with some plugin logic for an application.

Is there any way to debug this DLL, once it get's used by the application? The application is running as a service on Windows, and it's a COTS application, meaning that it's not a C# project I can start debugging from.

I am aware that there are limitations regarding debugging in Visual C# Express. Is this task possible in Visual Studio Pro?

What I want to acheive is to be able to step through the logic, set break points to see what happends when the call comes. Any clues?


Solution

  • I am not sure about VS Express but, normally,

    1. Open Visual Studio
    2. Open your Solution (Windows Service Project)
    3. Debug -> Attach To Process
    4. Select your Service from Available Process List
    5. You may use breakpoints and other stuff.

    Hope it helps.