Setting breakpoints in PHP - is this possible?

This is a discussion on Setting breakpoints in PHP - is this possible? within the PHP Language forums, part of the PHP Programming Forums category; I have some server side code I want to debug (coming from C++ background). I am using echo statements but ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-02-2008
Ronald Raygun
 
Posts: n/a
Default Setting breakpoints in PHP - is this possible?

I have some server side code I want to debug (coming from C++
background). I am using echo statements but for some reason, no output
is being generated. It would be much simpler if I could set breakpoints
to see the variable 'states' when a script is being run - is there any
developement IDE/Tool out there that helps me do this?

if the answer is no (which i suspect it is), does anyone know of any
likely reasons as to why my echo statements are not outputting text on
the browser?
Reply With Quote
  #2 (permalink)  
Old 05-02-2008
Captain Paralytic
 
Posts: n/a
Default Re: Setting breakpoints in PHP - is this possible?

On 2 May, 15:32, Ronald Raygun <inva...@domain.com> wrote:
> I have some server side code I want to debug (coming from C++
> background). I am using echo statements but for some reason, no output
> is being generated. It would be much simpler if I could set breakpoints
> to see the variable 'states' when a script is being run - is there any
> developement IDE/Tool out there that helps me do this?
>
> if the answer is no (which i suspect it is),

You suspect wrong.

What I am very surprised about is why, when you searched google for:

php breakpoints
or
php ide
or
php ide debugger

as you obviously did before posting here, you totally failed too see
all the hits it came back with!

xdebug is a good starting point. I use it in conjunction with notepad+
+

Eclipse is another good IDE for this purpose.

If you find out why your google connection isn't working, you'll find
all the rest.
Reply With Quote
  #3 (permalink)  
Old 05-02-2008
Michael Fesser
 
Posts: n/a
Default Re: Setting breakpoints in PHP - is this possible?

..oO(Ronald Raygun)

>I have some server side code I want to debug (coming from C++
>background). I am using echo statements but for some reason, no output
>is being generated. It would be much simpler if I could set breakpoints
>to see the variable 'states' when a script is being run - is there any
>developement IDE/Tool out there that helps me do this?


Xdebug
Zend Debugger

Both can be used with the Eclipse IDE for example.

>if the answer is no (which i suspect it is), does anyone know of any
>likely reasons as to why my echo statements are not outputting text on
>the browser?


Do you get a result from an echo statement at the very beginning of the
script? What's the setting of error_reporting and display_errors in your
php.ini? The first should be E_ALL|E_STRICT, the second "1" or "on".

Micha
Reply With Quote
  #4 (permalink)  
Old 05-05-2008
John Murtari
 
Posts: n/a
Default Re: Setting breakpoints in PHP - is this possible?

Ronald Raygun <invalid@domain.com> writes:

> I have some server side code I want to debug (coming from C++
> background). I am using echo statements but for some reason, no output
> is being generated. It would be much simpler if I could set
> breakpoints to see the variable 'states' when a script is being run -
> is there any developement IDE/Tool out there that helps me do this?
>
> if the answer is no (which i suspect it is), does anyone know of any
> likely reasons as to why my echo statements are not outputting text on
> the browser?


There are some pretty good debuggers out there as the
other folks said; however, as far as not seeing anything on your
screen --- it probably means a serious error is occuring even before
the script gets to your echo. You want to make sure screen display
of errors is on. Check the documentation, but try adding these two
lines to a .htaccess file in the same directory with the application:

php_flag display_errors on
php_value error_reporting 2047

That should get you something!

--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0