xDebug and glue php url paths

49 views
Skip to first unread message

Victor S

unread,
Sep 6, 2010, 9:07:13 PM9/6/10
to GluePHP
Hello,

How would I use xdebug with glue php, I'm having issues making glue
ignore the ?XDEBUG_SESSION_START=netbeans-xdebug after the url...

Joe

unread,
Sep 6, 2010, 10:21:33 PM9/6/10
to GluePHP
> How would I use xdebug with glue php, I'm having issues making glue
> ignore the ?XDEBUG_SESSION_START=netbeans-xdebug after the url...

This code will append the ?XDEBUG_SESSION_START=netbeans-xdebug
variable to the end of all of your $urls:

foreach ($urls as $url => $match) {
$n = array($url . '\?XDEBUG_SESSION_START=netbeans-xdebug' =>
$match);
$urls = array_merge($urls, $n);
}

I'm not terribly familiar with xdebug, but I installed it quickly and
tried this out. I think it works.

Thanks,
Joe

Victor S

unread,
Sep 6, 2010, 10:23:35 PM9/6/10
to GluePHP
Thanks I will give that a try soon,

What do you recommend for a debugging environment?

Cheers,
- V

Joe

unread,
Sep 6, 2010, 10:26:56 PM9/6/10
to GluePHP
On Sep 6, 8:23 pm, Victor S <victor.s...@gmail.com> wrote:
> Thanks I will give that a try soon,
>
> What do you recommend for a debugging environment?

print_r and standard error reporting have been good enough for me so
far.

Victor S

unread,
Sep 6, 2010, 10:55:00 PM9/6/10
to GluePHP
haha, keeping it real ;)

Victor S

unread,
Sep 8, 2010, 8:39:22 AM9/8/10
to GluePHP
Update: worked like a charm... maybe I'll make a little tutorial soon
and include this tidbit of wisdom from you to let those that are fond
of debugging with xdebug know how to make it work.

Cheers,

- V

On Sep 6, 10:21 pm, Joe <joetopj...@gmail.com> wrote:

Patrik_Tee

unread,
Oct 6, 2010, 4:56:13 PM10/6/10
to GluePHP
Maybe late for your debugging, though I havn't tested it yet, maybe
FirePHP can be of service? I know that one also can patch Apache's
mod_rewrite and set .htaccess to send it's own logs also to the
FireBUG/PHP-console.
He's working on a rewrite of the code also, and the new product is
named 'FirePHP Companion'.

Worth checking out?
I still go for 'print_r()' when I've scratched my head for too
long ;o)


../greets
Reply all
Reply to author
Forward
0 new messages