I went ahead and added this to the wiki, as it seems like it's a useful
tidbit of information to add there...

http://sipx-wiki.calivia.com/index.php/Debugging_sipXtapi_with_.NET
It's linked off the main sipXtapi page (just use the wiki search for
sipXtapi)

If it doesn't work quite right, can someone tweak it, or, if you have no
edit privileges, can you report the steps that worked so I can update the
wiki page?

I don't have the time to test this myself.

On 7/13/07, stipus <[EMAIL PROTECTED]> wrote:

Here I have 2 VS2005 solutions open

- One for SIPXTAPI
- One for my .NET project (using SIPXTAPI).

1) Make sure you are compiling SIPXTAPI with DEBUG turned on.

2) Copy SIPXTAPID.DLL and SIPXTAPID.MAP to your .NET project BIN
directory.

3) Run your .NET project. Make sure it loads the Debug DLL (sipxtapiD.dll)

4) Go to the open Visual Studio instance for the SIPXTAPI solution

5) Set your sipxtapi breakpoints wherever you need

6) Select DEBUG / ATTACH TO PROCESS

7) Make sure it's attaching to NATIVE-CODE (not MANAGED-CODE)

8) Select your .NET program (that should be running) and click the ATTACH
button.

That's all folks ;)

----- Original Message -----
From: "Alexey Trizno" <[EMAIL PROTECTED]>
To: "Daniel Sigurgeirsson" <[EMAIL PROTECTED]>
Cc: "sipXtapi developer list" <[email protected]>
Sent: Friday, July 13, 2007 2:34 PM
Subject: Re: [sipxtapi-dev] Debugging sipxtapi


> I believe that the one thing that's stopping me the most in figuring out
the cause of my recording problems, is the fact that I haven't been able
to
debug sipxtapi (setting breakpoints etc.). This is mainly because I'm
using
a .NET program as a starting point, and for some reason I cannot set
breakpoints inside sipxtapi (at least they are never enabled and never
hit).
Has anyone done this? I'm using VS.NET 2005.

I have same problem with debugging... from .NET application :(

--
Best regards,
Alexey [ [EMAIL PROTECTED] ]



_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/




--
Keith Kyzivat

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to