Page 1 of 1

Best IDE to develope and DEBUG PHP

Posted: Wed Oct 14, 2015 3:05 pm
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.

Re: Best IDE to develope and DEBUG PHP

Posted: Wed Oct 14, 2015 3:16 pm
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.

Re: Best IDE to develope and DEBUG PHP

Posted: Wed Oct 14, 2015 3:22 pm
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 :(

Re: Best IDE to develope and DEBUG PHP

Posted: Wed Oct 14, 2015 4:05 pm
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.

Re: Best IDE to develope and DEBUG PHP

Posted: Thu Oct 15, 2015 1:16 am
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

Re: Best IDE to develope and DEBUG PHP

Posted: Thu Oct 15, 2015 6:09 am
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]

Re: Best IDE to develope and DEBUG PHP

Posted: Fri Oct 16, 2015 12:28 am
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.