this feels stupid question, cannot find youtube videos / articles / guides / etc explain debugging process in aptana.
i've found ones explain how install xdebug or zend components, , that's good. now, how use them? can see sorts of menus, server configurations, debug configurations, cannot find guide explains how set using them.
is there sort of "php debugging aptana dummies" provide direct walkthrough, along lines of:
- this guide starts assuming have installed xdebug aptana studio, , confirmed phpinfo().
- setup debug configuration by....
- start debugger ....
- step through code ....
and on.
it sounds obvious, cannot find different ide.
please put me out of misery.
hope helps someone... heaven alone knows why i've battled it.
i using aptana studio 3, build 3.4.2..... , xampp ver 1.8.1 installed on c:\xampp (on windows machine)
1. ensure xdebug installed.
i moved new computer, , forgot check. :(
open php.ini file under \php directory make sure following lines uncommented (no semicolon)
zend_extension="<xampp_home>\php\ext\php_xdebug.dll" xdebug.remote_host=localhost (change 'localhost' '127.0.0.1') xdebug.remote_enable=0 (change '0' '1') xdebug.remote_handler="dbgp" xdebug.remote_port=9000 save , restart web server.
2. setup web server in aptana under window > preferences > aptana web studio > web servers.
(i use virtual host containers.)
name: mywebserver url: http://myproject documentroot: c:\xamppprojects\myproject\php 3. setup php interpreter in aptana under window > preferences > aptana web studio > editors > php > php interpreters.
add...
name: xampp php debugging executable path: c:\xampp\php\php.exe php ini file: c:\xampp\php\php.ini php debugger: xdebug now try out
in aptana studio, select debug perspective. open browser , fire app (http://myproject) aptana interrupts pop window titled "incoming jit debug request" , asks "a remote debug request received 'myproject'. break on first line?"
select yes, , you're debugging.
once got point, found setting of breakpoints , tracing flow pretty painless.
Comments
Post a Comment