You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by ni...@opensource.lk on 2004/11/25 11:17:34 UTC

How to debug server side using kdbg

Hi all,

   Can any one please tell me how to debug server side using kdbg.

Regards,
Nithya

Re: How to debug server side using kdbg

Posted by damitha kumarage <da...@opensource.lk>.
Hi Nithya,
you mean how to debug axis c++ server as an apache module?
OK read below

I use both gdb and kdbg for debugging server side.
gdb is not so user friendly but i must say it is an excellent tool
once you master it.
                                                                                                                             
I'll explain how to debug our server engine, first with kdbg and then
gdb.
I had some permission problems when debugging  with apache2 installed by
root.
Since I could not resolve those problems I tried installing apache2
using my
user account and successful in doing so.
I installed apache in /home/damitha/programs/apache2(I call this
<apache2-home>
We need to start apache in single process mode for debugging.
First I deployed axis c++ in apache and tested normally as pointed in
the install
document.
                                                                                                                             
Make sure axiscpp.conf and server.wsdd documents are correctly
configured and
libaxiscpp_mod2.so is in <apache2-home>/modules folder
                                                                                                                             
cd <apache2-home>/bin
./httpd -X &
Get the process id of httpd running
ps -A|grep httpd
                                                                                                                             
 with kdbg
==========
1)start kdbg
kdbg &
2)select executable from the file menu to be <apache2-home>/bin/httpd
3)from Excecution menu select Attach sub menu and give the httpd process
id there
Now apache is ready to listen to your client request
4)From the file menu select your axis c++ source file to debug and put
break points
5)run the client
6)  Now in your kdbg window select F7 function key to jump in to the
first break point you
  set and enjoy debugging
with gdb
========
1) start gdb
gdb
2)attach <httpd process id>
                                                                                                                             
3)set the break points
4)run the client
5)type c to jump to the first break point you set and enjoy debugging
                                                                                                                             
thanks
damitha

On Thu, 2004-11-25 at 16:17, nithya@opensource.lk wrote:
> Hi all,
> 
>    Can any one please tell me how to debug server side using kdbg.
> 
> Regards,
> Nithya
>