Hi guys,
Can you suggest a debugging tool for php code ? I take advantage of SQL Debug provided by SC but php code’s debugging is really difficult when the applications start to grow
Thanks in advance
Manuel
Hi guys,
Can you suggest a debugging tool for php code ? I take advantage of SQL Debug provided by SC but php code’s debugging is really difficult when the applications start to grow
Thanks in advance
Manuel
If you need better debug options you can edit and run the code from a raw php development tool like Zend, phpEd and other php debugging tools. They work from the desktop, which is a real challenge to web-based applications like SC. But once you deploy you can put it into a debugging tool
xdebug works with your deployed scriptcase, I use it to find bugs in the generated code (and they still exist and hardly get fixed…).
But others work fine as well…
Hi,
I am new to scriptcase and could not debug code with scriptcase. Is there any other tool that i can use ? I am new to PHP and love scriptcase but due to lack of debug, thinking about using it for for our production. How to use Xdebug with scriptcase ? I have phpedit also. How to debug an application developed in scriptcase in Phpedit ?
Experts please advice.
Thanks
[QUOTE=ashdev805;22734]Hi,
I am new to scriptcase and could not debug code with scriptcase. Is there any other tool that i can use ? I am new to PHP and love scriptcase but due to lack of debug, thinking about using it for for our production. How to use Xdebug with scriptcase ? I have phpedit also. How to debug an application developed in scriptcase in Phpedit ?
Experts please advice.
Thanks[/QUOTE]
If you mean phpEd, create a workspace and point that to the correct webserver after defining debug as being done on an external webserver. phpEd will move a debugging file to the root and then you can simply start the generated code, set breakpoints etc.
xdebug useage:
On your local webserver (for me uniserverz) change your php.ini
add:
[xdebug]
zend_extension=${US_ROOTF}/core/php54/extensions/php_xdebug.dll
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.profiler_enable = 1
In your php/extensions dir add php_xdebug.dll (basically you need to add this to the xdebug path).
That is about it… Just restart your server and you are done… Start xdbg on that localhost ond it will connect to port 9000.
After that it is fairly easy…
Also check out http://xdebug.org/wizard.php if you are using windows.