简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM