New PHP Guy-How do you run PHP code through a Debugger, what

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cecilchampenois
Forum Commoner
Posts: 47
Joined: Thu Nov 06, 2014 10:29 am
Location: Gilbert, Arizona
Contact:

New PHP Guy-How do you run PHP code through a Debugger, what

Post by cecilchampenois »

I use Visual FoxPro to write desktop applications and it has a great debugger tool that allows a developer to step through every line of code and see the values of variables as you go through the code line by line. I don't know if you can do that with web development, but is there something similar. I do have Firefox Firebug installed on my Firefox browser, but it seems to have limitations.
Cecil Champenois
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: New PHP Guy-How do you run PHP code through a Debugger,

Post by Celauran »

Take a look at XDebug. Juan Treminio wrote up a good XDebug tutorial.
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: New PHP Guy-How do you run PHP code through a Debugger,

Post by twinedev »

cecilchampenois wrote:I do have Firefox Firebug installed on my Firefox browser, but it seems to have limitations.
One thing to keep in mind is that Firebug is for inspecting the what the browser is doing (client side), where PHP is executed on the server side.

Myself I have been using PhpED for 5+ years now and it has it built in both for local as well as a server extension for doing remote handling. Not free, but IMO has paid for itself in features.
cecilchampenois
Forum Commoner
Posts: 47
Joined: Thu Nov 06, 2014 10:29 am
Location: Gilbert, Arizona
Contact:

Re: New PHP Guy-How do you run PHP code through a Debugger,

Post by cecilchampenois »

I am assuming this is the correct site for PHPEd?

http://www.nusphere.com/index.htm
Cecil Champenois
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: New PHP Guy-How do you run PHP code through a Debugger,

Post by Weirdan »

It is. If you're into non-free IDEs, you may also try PHPStorm and Zend Studio.
Post Reply