PHP IDE Companion

Hi all,

I asked this on another thread, but I think is interesting to have it with it’s own thread and if possible, pinned.

We know we can code on Code Areas on SC, but has limitations, and sometimes is better to use an IDE (to debug purpposes. to create libs and so on for example), as companion to our SC Projects.

I would like to know your recomendations and setup to get a PHP IDE companion to your SC enviroment, to share with the community.
IDE/Editor you use?, with plugins?, how to configure it for a better integration?, and so on.

Just as an Example:

I use Sublime Text, with extensions X, and Y. To configure you need to do somethingstodo. It’s great because is fast and clean…

I will update this main post pointing to every suggestion with your comments to have all organized.

Thanks for help.

I use phpEd for that, but you can also use notepad++ if you only need syntax highlighting. Other tools are zend or eclipse.

I use PHP Storm. Let’s just say that there is a reason Google partnered with them.

I use Sublime Text too. It is a great tool.

Netbeans is also good - very powerful and free!

Hi Albert,

I understand these tools can be “included” in the Sc environment and replace the simple ed included in Sc, is this true ?
how ? where ?
please a step by step procedure

thanks
Aquiles

http://www.scriptcase.net/forum/showthread.php?5452-it-is-possible-to-replace-the-code-editor-with-one-with-sintax-debugger

As far as I know it cant be replaced. It is probably an encrypted piece of php I guess it is the file called nmeditor.php or any of the other php files from the scriptase dir.
Most are encrypted. And you ca’nt just replace it so easily.
So you can easily use notepad++ or so and then copy paste it to your scriptcase webpage where you are editing…

I like WeBuilder 2014. Does what I need.

My choice is free Codelobster PHP Edition

I like codelobster too. Almost all free possible IDE, Codelobster is probably one of my favourites, but he needs the server use php.ini to debug and right now I’m using Uniserver (he use php_production.ini php_development.ini and so on…). Maybe when I change local server give again a try.

Looks very interesting, and price is gorgeous.

How good is debugging with it?

Regards.

Can you share your configuration for debug under Apache of SC v8? Don’t works to me :frowning:

I use notepad++ but learnet a lot from here, seems Sublime Text popular will try it out :smiley:

Giu, why don’t you add a poll to this thread, you can collect statistics better, add also the option of allowing users to add extra answers, so we have good numbers :smiley:

Notepad++ is great! but IDE normally allows the use of debug and break points, ver usefull to find and fix errors.

Didn’t think necessary to create a poll. As you can see not too much people answered. A lot of developers don’t use external IDE to SC

If you need to use XDebug under PHP then you need to adjust the php.ini file as you need to define the server/port settings. It’s pretty good documented on the XDebug pages, you need to add something like:

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = “c:/wamp/tmp”
xdebug.show_local_vars=0

xdebug.remote_host=127.0.0.1
xdebug.remote_enable=1
xdebug.remote_handler=“dbgp”
xdebug.remote_port=9000

Be aware that you need the correct php,ini file as there are sometimes more in the field. I needed to adjust the ini at the apache webserver. Also you need the correct XDebug dll like:

zend_extension = “c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll”

This is for Wamp, but more info on the xdebug site.

[QUOTE=aducom;26528]If you need to use XDebug under PHP then you need to adjust the php.ini file as you need to define the server/port settings. It’s pretty good documented on the XDebug pages, you need to add something like:

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = “c:/wamp/tmp”
xdebug.show_local_vars=0

xdebug.remote_host=127.0.0.1
xdebug.remote_enable=1
xdebug.remote_handler=“dbgp”
xdebug.remote_port=9000

Be aware that you need the correct php,ini file as there are sometimes more in the field. I needed to adjust the ini at the apache webserver. Also you need the correct XDebug dll like:

zend_extension = “c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll”

This is for Wamp, but more info on the xdebug site.[/QUOTE]

Hi Albert. Yes, I got it working Netbeans or Sublime with XDebug extension, debugging with XDEbug on Joomla sites for example, but Codelobster don’t use Xdebug, for this reason I ask about Codelobster configuration to work with bundled isntallation of SC

[QUOTE=Giu;26523]Notepad++ is great! but IDE normally allows the use of debug and break points, ver usefull to find and fix errors.

Didn’t think necessary to create a poll. As you can see not too much people answered. A lot of developers don’t use external IDE to SC[/QUOTE]

yes i am one of them, never knew that i can debug out of sc or have something like breakpoint!! interesting subject and gives more ideas about the stupid errors we sometimes facing, i think i am gonna watch this thread and do my homework

really guys, i’ve learnt a lot here, even away from SC

appreciated, aducom, Giu, jsb the king, adz, John… and many many other, thank you very much :cool:

The debugging thing is strange for SC because (as I understand it) you cannot debug as per what you see in the SC code editor. What you have to do is debug the generated code by opening that in an external IDE (I use netbeans as its free - but may be a bit of a sledgehammer to crack a nut), so it can be a bit challenging finding the bit of code you want to break on etc - but is do-able and can really get you out of a hole.

For people how want to code directly in browser like scriptcase, try :

https://icecoder.net/

Its great but kinda heavy (consumes much memmory), if you have a powerful machine should do the job.

else, if you want something light I recoomend one of the following:

Paid: PHP Storm

Free: Notepad++, Sublime (If you like the tool, purchase).