Best IDE to develope and DEBUG PHP

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
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Best IDE to develope and DEBUG PHP

Post by gautamz07 »

Hey guys , what is the best IDE to develope and most importantly DEBUG PHP ??

Please give me your recommendation and tell me what you personally use.

suppose i wanna check the output of rtrim() , i don't want to have to upload the file to the server or run xampp. I have heard about xdebugg.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Best IDE to develope and DEBUG PHP

Post by requinix »

You have to execute the file. Somewhere.
a) Upload it to your server and execute it there - very bad
b) Use XAMPP or another similar thing so that you can run your stuff through a web server
c) Use PHP's built-in web server for development but keeping in mind that it's not the same as a regular web server
d) Run your stuff from the command-line which is completely different from running it in a web server

As for editors, PhpStorm is popular. I still use NetBeans.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Best IDE to develope and DEBUG PHP

Post by gautamz07 »

c) Use PHP's built-in web server for development but keeping in mind that it's not the same as a regular web server
d) Run your stuff from the command-line which is completely different from running it in a web server
never knew these 2 options existed. By testing , i just meants something for quick and dirty testing , for eg. if i want to see te output of rtrim() , i don't want to be uploading the file to my server to check the output , i would rather just see it in my IDE.

Btw, i am familier with https://eclipse.org/pdt/ , ver tried this one ? is it popular ? i might probably end up with netbeans , PHPstorm is commercial :(
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Best IDE to develope and DEBUG PHP

Post by Celauran »

if i want to see te output of rtrim() , i don't want to be uploading the file to my server to check the output
Do you not have a local server? How do you develop locally?

Also, for real quick and dirty, there's always PHP's REPL

I haven't heard much good about Eclipse, to be honest. NetBeans is OK, PHPStorm is excellent. They are all able to interface with XDebug.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Best IDE to develope and DEBUG PHP

Post by gautamz07 »

good morning guys.

I use xampp.

After reading online a bit .. i'll probably go for netbeans.

Did't know something called REPL existed , will probably get a PHP repl installed , found one, https://github.com/facebookarchive/phpsh .

Thank you for your suggestions celauran , requinix ... :D
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Best IDE to develope and DEBUG PHP

Post by Celauran »

I'm confused. XAMPP comes with Apache and PHP, so you have a local server, which brings me back to having no idea why you'd need to upload anything anywhere to test it.

You don't need to download a REPL, you can just [text]php -a[/text]
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Best IDE to develope and DEBUG PHP

Post by gautamz07 »

Yes i can run it on xampp too ! i don't need to uplaod to my server .

i just wanted something like scratchpad(in mozilla , used for JS) , to evaluate PHP only methods etc. ofcourse if a database is involved , i would obviously need a server or run on xampp.
Post Reply