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

Home » Imported messages » comp.lang.php » Anyone have experience with any php debuggers?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Anyone have experience with any php debuggers? [message #180062 is a reply to message #180060] Thu, 03 January 2013 09:25 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 03.01.2013 03:50, schrieb BobMCT:
> I've introduced an elusive bug into a rather large PHP program. I've
> been debugging it my usual ways for several weeks now without success.
>
> I would like to "watch" certain vairables to see when they are altered
> and where as well as to what. I've installed xdebug on my server and
> netbeans IDE on my Windoze desktop. I can't figure out how to "watch"
> a variable. Otherwise I've got the IDE working.
>
> I've also tried installing phpbuglost as a debugger. Looks promising
> but I can't get it to work. I also found debugConsole but that seems
> to be defunt.
>
> So, I'm asking for suggestions and, regarding the phpbuglost, how did
> anyone get it working?
>
> I'm not asking anyone to fix my bug(s), just provide some insight on
> good/useful php debuggers.

A programmer must be able to configure his debugger.

Use xdebug, and a IDE that does it, for example Komodo IDE.

The xdebug ini looks like this:

zend_extension=/whatever/your/path/to/usr/lib/php5/20100525/xdebug.so
xdebug.remote_enable = On
xdebug.remote_host = 192.168.0.111
xdebug.idekey = ohmy

Start your IDE, configure "listen for debugger connections on port 9000".

Go to your browser, enter your URL like this:
http://mysite.example.com/index.html?XDEBUG_SESSION_START=ohmy

Now your IDE pops up a message, and on it goes in debug mode. You get at least:

buttons for single step, step over procedure, return from procedure, and run (to the
end), display areas where you see all variables of the current step scope, and a
display area for globals and superglobals.

EVERY PHP PROGRAMMER SHOULD HAVE THIS.

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reset Auto Increment to lower value
Next Topic: POST data being truncated at "
Goto Forum:
  

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

Current Time: Sat Nov 30 15:15:43 GMT 2024

Total time taken to generate the page: 0.04093 seconds