Debugging sipXtapi with .NET
From SIPfoundry sipXecs IP PBX, The Open Source SIP PBX for Linux - Calivia
How to debug sipXtapi through a .NET application
Here I have 2 VS2005 solutions open
- One for SIPXTAPI
- One for my .NET project (using SIPXTAPI).
- Make sure you are compiling SIPXTAPI with DEBUG turned on.
- Copy SIPXTAPID.DLL and SIPXTAPID.MAP to your .NET project BIN directory.
- Run your .NET project. Make sure it loads the Debug DLL (sipxtapiD.dll)
- Go to the open Visual Studio instance for the SIPXTAPI solution
- Set your sipxtapi breakpoints wherever you need
- Select DEBUG / ATTACH TO PROCESS
- Make sure it's attaching to NATIVE-CODE (not MANAGED-CODE)
- Select your .NET program (that should be running) and click the ATTACH button.
That's all folks ;)
(Taken from user stipus on the sipXtapi-dev mailing list)
