FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Debugger which can set breakpoint and view variables on watch window
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Debugger which can set breakpoint and view variables on watch window [message #178851 is a reply to message #178827] Mon, 13 August 2012 08:00 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 10/08/2012 10:14, Lightee escribió/wrote:
> I just started reading up on PHP a few weeks ago. Borrowed a number
> of books but none of them could recommend a debugger which can set
> breakpoint and view variables on watch window. Is it possible to have
> a debugger like Visual Studio where one can step through the code,
> view how the variables change in a watch window? This is essential
> for good quality code and debugging.
>
> Not sure if this is a limitation of PHP or I am ignorant. Does such a
> debugger exist?

Such debugger exists, but it isn't part of the language itself. It's
composed of two parts:

1. A server-side library you plug into your PHP installation
2. A client-side tool to interact with the first component

.... and there are several alternatives to choose for.

For #1, the most common option is Xdebug, probably because it's the only
decent free tool out there (all other tools I know are proprietary and
cost money). It's reasonably good, but you must be sure you follow the
official documentation if you want to configure it: docs you find out
there tend to be pretty outdated.

For #2, you need a tool that's compatible with your first choice. As far
as I know, most IDEs (but not all) support Xdebug: NetBeans IDE,
Exclipse, PhpStorm, Komodo IDE...

Some IDEs force you to use their own Apache+PHP+Xdebug bundle, which can
make things more difficult to understand.

Additionally, there're browser extensions for Firefox, Chrome, Opera...
that simplify enabling and disabling debugging.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem in creating Zip file
Next Topic: parameters with numbers
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 20:07:58 GMT 2024

Total time taken to generate the page: 0.04507 seconds