EhevuTov
EhevuTov

Reputation: 20463

Automating DLL Debugging "attach to process" in Visual Studio?

I'm writing an SNMP extension agent DLL for Windows.

Is there a way to automatically attach the DLL to the SNMP service each time I want to test/debug?

This is a very tedious and time consuming process, as I currently have to stop the SNMP service, compile, restart the service and then attach the process. I'm trying to automate it more.

Upvotes: 1

Views: 1552

Answers (1)

Camford
Camford

Reputation: 780

This may be what you want to have a look at.

Visual Studio debugger offers some command line option to attach to running process. You can probably write a Python script to enumerate running processes and attach the debugger to the service. I think you need admin priviledge to do that.

.Net has a convinient Debugger.Launch(), but I can't find an equivalent for the native.

Upvotes: 1

Related Questions