For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2007 > debugging









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author debugging
gopal

2007-03-21, 7:05 pm

I want to debug a web request which calls a c++ executable built
using
AIX/UNIX. I am having IBM AIX Server. How to start this ?

Thanks & Regards
JK

Jens Thoms Toerring

2007-03-21, 10:03 pm

gopal <gopal.srini@gmail.com> wrote:
> I want to debug a web request which calls a c++ executable built
> using
> AIX/UNIX. I am having IBM AIX Server. How to start this ?


What does "debug a web request" mean? Or do you have to debug
the the program written in C++ that gets invoked as a result of
the "web request"? In the later case what makes that different
from debugging any other program (except that you may have to
set up a few environment variables)?

Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
David Schwartz

2007-03-22, 4:05 am

On Mar 21, 8:27 am, "gopal" <gopal.sr...@gmail.com> wrote:
> I want to debug a web request which calls a c++ executable built
> using
> AIX/UNIX. I am having IBM AIX Server. How to start this ?


If I understand what you're asking, the best way is probably to create
a test harness that can launch the C++ executable the same way the web
server does (path, permissions, environment, and so on) but under a
debugger.

DS

gopal

2007-03-22, 10:03 pm

On Mar 22, 12:54 am, "David Schwartz" <dav...@webmaster.com> wrote:
> On Mar 21, 8:27 am, "gopal" <gopal.sr...@gmail.com> wrote:
>
>
> If I understand what you're asking, the best way is probably to create
> a test harness that can launch the C++ executable the same way the web
> server does (path, permissions, environment, and so on) but under a
> debugger.
>
> DS


Hi All,
Thanks for the response.

I will explain you, it is something like this.

GUI - Web Server requests
Middleware - c++ executables
backend - D/B respository

so when the web reqeust is give, say want to view then the request
hits the c++ exes, created in unix~ AIX 5.1 and the request is
processed, sent to D/B.

Response is again processed by c++ exes in AIX 5.1 and send to web
page as output.

Now how to launch the same under debugger. I am going through the
documentation fo adb debugger, i am unable to move further.

I also wanted to know if we have to use any visual age c++ debugger or
xlC compiler.

please do help.

Thanks & Regards
JK

Ian Collins

2007-03-22, 10:03 pm

gopal wrote:
> On Mar 22, 12:54 am, "David Schwartz" <dav...@webmaster.com> wrote:
>
>
>
> Hi All,
> Thanks for the response.
>
> I will explain you, it is something like this.
>
> GUI - Web Server requests
> Middleware - c++ executables
> backend - D/B respository
>

Co you have a C++ CGI program. Just wrap it in a shell that sets up the
CGI environment variables and call it. I assume you have some unit
tests for the code? If not, why not?


--
Ian Collins.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com