Environment and development tools: Difference between revisions

Jump to navigation Jump to search
Line 123: Line 123:


* Install XDebug.
* Install XDebug.
With Ubuntu: install package '''php-xdebug''':
=== In Windows ===
<source lang="bash">
* Download dll file '''php_debug_xxx.dll''' on http://www.xdebug.org and store it in directory /ext of php. Then enable plugin.
sudo apt-get install php5-xdebug
</source>


With WampServer/Windows: Download dll file '''php_debug_xxx.dll''' on http://www.xdebug.org and store it in directory /ext of php. Then enable plugin.
* Modify php.ini file to add parameters:
 
* Modify php.ini file in windows to add parameters:
<source lang="ini">
<source lang="ini">
  [xdebug]
  [xdebug]
Line 143: Line 139:
</source>
</source>


or xdebug.ini in ubuntu to add parameters after the line zend_extension=xxx (or similar):
 
 
=== In Ubuntu / Linux ===
* Install package '''php-xdebug''':
<source lang="bash">
sudo apt-get install php5-xdebug
</source>
 
* Modify xdebug.ini to add parameters after the line zend_extension=xxx (or similar):
<source lang="ini">
<source lang="ini">
  xdebug.remote_enable=on
  xdebug.remote_enable=on
Line 155: Line 159:
</source>
</source>


=== Eclipse configuration ===
* Open Eclipse. In Window->Preferences->General->Web Browser, select external web browser, and set it to Default system web browser.  
* Open Eclipse. In Window->Preferences->General->Web Browser, select external web browser, and set it to Default system web browser.  


Navigation menu