> I've heard that a useful tool for debugging perl cgi scripts is to run
> them through ddd on a XWindows machine when the user calls the
> web page.
>
> Is this possible with Embperl?
>
Yes, 2.0 supports debugging your page with the perl debugger. In offline
mode you can use the Perl debugger with
perl -d embpexec.pl file.epl
or ddd with
ddd --debugger 'perl -d embpexec.pl file.epl'
this will show you your html page source and you can step thru it, set
breakpoints etc., just like a normal perl program.
When you run Embperl as a cgi script, it should be possible to do the same,
also I didn't tried it yet. To avoid stepping thru Embperl itself, you
should copy the BEGIN block from embpexec.pl to embpcgi.pl.
When running under mod_perl you can use Apache::DB to step thru your embperl
pages. I think it should also be possible to use DDD together with mod_perl,
in this case you need an Apache which is configured to use Apache::DB as
debugger and start the whole Apache under DDD, with something like
ddd --debugger 'httpd -f /path/to/httpd.conf' --perl
I didn't have tried the last thing, also it's on my to do list and it really
would be great if it works.
Let me know the results in case you try it out
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]