Environment and development tools: Difference between revisions

m
Line 127: Line 127:
* CygWin (to have the "patch" command and the command line CVS if you prefer command lines interface)
* CygWin (to have the "patch" command and the command line CVS if you prefer command lines interface)


== If you want to make debug and tunning with XDebug ==
== If you want to make step by step debugging or tunning (XDebug) ==
* To add global tuning information for pages on your browser status bar, add environment variable DOL_TUNING to 1 into Apache. For this, just add the following line into your apache.conf:
<source lang="ini">
SetEnv DOL_TUNING 1
</source>
Then, check that your browser does not have options to block changing of status bar by javascript.


* Install xdebug.
* Install XDebug.
With Ubuntu: install package php-xdebug
With Ubuntu: install package php-xdebug


Line 135: Line 140:


* Modify php.ini file (or xdebug.ini) to add parameters:
* Modify php.ini file (or xdebug.ini) to add parameters:
 
<source lang="ini">
  [xdebug]
  [xdebug]
  xdebug.remote_enable=on
  xdebug.remote_enable=on
Line 145: Line 150:
  xdebug.profiler_output_dir=c:/temp
  xdebug.profiler_output_dir=c:/temp
  xdebug.profiler_append=0
  xdebug.profiler_append=0
</source>


* Then to analyze files generated by XDebug profiling, you can install KCacheGrind (Linux) or WinCacheGrind (Windows).
* Then to analyze files generated by XDebug profiling, you can install KCacheGrind (Linux) or WinCacheGrind (Windows).