Re: FASTCGI - How to Debug C++ fastfcgi

Jay Sprenkle <[email protected]> Tue, 8 Jan 2013 12:05:38 -0600
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <CAG19Bi6sAVjoqtgWHzCJef9XfbgMStO4cs5mhR0MpX4YcE8GcQ@mail.gmail.com>
--===============0011288704537708001==
Content-Type: multipart/alternative; boundary=bcaec5101bfd0d2b6804d2cacb75

--bcaec5101bfd0d2b6804d2cacb75
Content-Type: text/plain; charset=ISO-8859-1

You can approach this in several ways:

1. Write an application that calls your fastcgi process and tests it.
2. Use load testing and automation software to do this.

If you want to try out a free testing package this one looks like it might
work for you:
http://www.pushtotest.com/web-testing-with-selenium-pushtotest
You could install the proxy and record an interaction with your web page.
You can then use the recorded script to load test and test the functions of
your fastcgi app.

I am not affiliated with them and can't speak from experience about how
good selenium is.
I've been told second hand that it works well.


On Tue, Jan 8, 2013 at 2:44 AM, Joana Santos <[email protected]> wrote:

> Hi,
>
> I'm new in fastcgi/cgi development and i'm new in c++ development too.
>
> The IDE i'm using is eclipse.
> I'm using apache2 web server installed in one XUbuntu virtual machine.
>
> In my FastCGI i'm using *fcgi_stdio* .
>
> Sometimes i get internal server error in my fastcgi script and if i go to
> apache log i don't find enough information to locate my error.
> I think my problem could have something about memory allocation.
>
> If i create a console application project and put my classes there all
> works fine.
> But when i call my classes from the fastcgi sometimes i receive an
> Internal server error.
>
> I would like some help to :
>
>  - debug my fastcgi script and be able to simulate GET, POST and PUT
> requests (i'm developing an web application that submits ajax requests.)
>
>  - how to catch this kind of error in my fastcgi and treat it.
>
>
> thanks,
> Joana
>
>
>
>
>
>
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
>
>


-- 
---
*http://xkcd.com/1156/*
*
*

--bcaec5101bfd0d2b6804d2cacb75
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

You can approach this in several ways:<div><br></div><div>1. Write an appli=
cation that calls your fastcgi process and tests it.</div><div>2. Use load =
testing and automation software to do this.</div><div><br></div><div>If you=
 want to try out a free testing package this one looks like it might work f=
or you:</div>
<div><a href=3D"http://www.pushtotest.com/web-testing-with-selenium-pushtot=
est">http://www.pushtotest.com/web-testing-with-selenium-pushtotest</a></di=
v><div>You could install the proxy and record an interaction with your web =
page.</div>
<div>You can then use the recorded script to load test and test the functio=
ns of your fastcgi app.</div><div><br></div><div>I am not affiliated with t=
hem and can&#39;t speak from experience about how good selenium is.</div>
<div>I&#39;ve been told second hand that it works well.<br><br><br><div cla=
ss=3D"gmail_quote">On Tue, Jan 8, 2013 at 2:44 AM, Joana Santos <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">js=
[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br><br>I&#39;m new in fastcgi/cgi develo=
pment and i&#39;m new in c++ development too.<br><br>The IDE i&#39;m using =
is eclipse.<br>
I&#39;m using apache2 web server installed in one XUbuntu virtual machine.<=
br><br>In my FastCGI i&#39;m using <b>fcgi_stdio</b> .<br>
<br>Sometimes i get internal server error in my fastcgi script and if i go =
to apache log i don&#39;t find enough information to locate my error.<br>I =
think my problem could have something about memory allocation.<br><br>
If i create a console application project and put my classes there all work=
s fine. <br>
But when i call my classes from the fastcgi sometimes i receive an Internal=
 server error.<br><br>I would like some help to :<br><br>=A0- debug my fast=
cgi script and be able to simulate GET, POST and PUT requests (i&#39;m deve=
loping an web application that submits ajax requests.)<br>

<br>=A0- how to catch this kind of error in my fastcgi and treat it.<br><br=
><br>thanks,<br>Joana<br><br><br><br><br><br>
<br>_______________________________________________<br>
FastCGI-developers mailing list<br>
<a href=3D"mailto:FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developer=
[email protected]</a><br>
<a href=3D"http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers" =
target=3D"_blank">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-devel=
opers</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>---<br><=
font face=3D"Verdana, Helvetica, sans-serif"><span style=3D"font-size:12px"=
><i><a href=3D"http://xkcd.com/1156/" target=3D"_blank">http://xkcd.com/115=
6/</a></i></span></font><br>
<div><font face=3D"Verdana, Helvetica, sans-serif"><span style=3D"font-size=
:12px"><i><br></i></span></font><div><br></div></div>
</div>

--bcaec5101bfd0d2b6804d2cacb75--

--===============0011288704537708001==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

--===============0011288704537708001==--