A php debugger that allows me to...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

A php debugger that allows me to...

Post by hairyjim »

Is there a debugger that allows me to have my website open in a browser and debug as I surf through my site?

The problem i have is inside some code on a shoping cart, I need to login and add items to the cart.

What I need to be able to do is to go through this process of adding items to the cart and set break points in the code and then be able to step into, over and so on.

I have tried the Zend IDE and just could not figure it out at all....

Help with finding something useful would be most appreciated.

Jim
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Re: A php debugger that allows me to...

Post by foobar »

hairyjim wrote:Is there a debugger that allows me to have my website open in a browser and debug as I surf through my site?

The problem i have is inside some code on a shoping cart, I need to login and add items to the cart.

What I need to be able to do is to go through this process of adding items to the cart and set break points in the code and then be able to step into, over and so on.

I have tried the Zend IDE and just could not figure it out at all....

Help with finding something useful would be most appreciated.

Jim
Use error_reporting().
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

It is not errors I am trying to track down I am trying to debug some functions.

I need to see what variables are set and what values they are assigned.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

You should be able to do it with Zend Studio without too much hassle but it does require a version that supports remote debugging.

There is also xdebug which I use for this purpose.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Or, add

Code: Select all

<?php 
echo '$variable';
exit;
?>
to your code.
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

No no no no....

I got the nusphere one working and to my delight I can step in, over and out of functions. Look at variable values, check array assignments and so...almost a dream come true.

Thanks for replies.

Jim
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

redmonkey wrote:There is also xdebug which I use for this purpose.
Not seen that before .. the profiler is going to be incredibly useful .. thanks for the link.
Post Reply