boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debugger?

 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
cjc



Joined: 24 Dec 2002
Posts: 146
Location: New York

PostPosted: Wed Apr 30, 2003 12:05 am    Post subject: Debugger? Reply with quote

Out of curiousity, what PHP debugger are people using?
Back to top
View user's profile Send private message Visit poster's website
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Apr 30, 2003 1:46 am    Post subject: Reply with quote

echo
Back to top
View user's profile Send private message Visit poster's website
cjc



Joined: 24 Dec 2002
Posts: 146
Location: New York

PostPosted: Wed Apr 30, 2003 4:50 am    Post subject: Reply with quote

Mister44 wrote:
echo


True. Actually, I was thinking of the cases where the php script won't compile because of some missing semi-colon or such.
Back to top
View user's profile Send private message Visit poster's website
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Apr 30, 2003 5:10 am    Post subject: Reply with quote

Code:
error_reporting  =  E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
track_errors = On
error_log = /var/log/phperrors.log

and in protected development directorties, I use .htaccess to turn display_errors on.
Back to top
View user's profile Send private message Visit poster's website
Ruud



Joined: 12 Oct 2002
Posts: 77

PostPosted: Wed Apr 30, 2003 1:25 pm    Post subject: Reply with quote

I have Apache, PHP and MySQL locally installed so I can test my scripts.

I use PHP Edit (free) to edit/debug scripts. 98% of the time scrolling to the line number which produced the error solves the problem right away but otherwise you can step through the execution of the script.

Ruud
Back to top
View user's profile Send private message Visit poster's website
cjc



Joined: 24 Dec 2002
Posts: 146
Location: New York

PostPosted: Wed Apr 30, 2003 3:29 pm    Post subject: Reply with quote

Yeah, I should have looked at the log file. Totally forgot: it would have solved my problem last night of finding the missing parenthesis.

I use vi as my editor. As you noted, 98% of the time, it's sufficient to just go to the line number -- which I now see is in the log file -- so I'll hold off on the more extensive IDE for now. Thanks for the recommendation!
Back to top
View user's profile Send private message Visit poster's website
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Apr 30, 2003 3:42 pm    Post subject: Reply with quote

I use ultraedit for my editor... the development version of PHPEdit looks very cool, but is horribly unstable on my desktop. (Win2K / fully patched)
Back to top
View user's profile Send private message Visit poster's website
GamerZ



Joined: 15 May 2002
Posts: 537
Location: Singapore

PostPosted: Wed Apr 30, 2003 4:08 pm    Post subject: Reply with quote

hehe i am using EditPlus2
_________________

++ GamerZ.Per.Sg - Complex Simplicity
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group