Debugging Joomla with Komodo IDE: Difference between revisions

From Joomla! Documentation

Pacav69 (talk | contribs)
Pacav69 (talk | contribs)
Line 17: Line 17:
===Modifying the php.ini file===
===Modifying the php.ini file===
In order to use the debugger you need to modify the php.ini file of the Apache server you are using.
In order to use the debugger you need to modify the php.ini file of the Apache server you are using.
Follow these instructions [[Edit PHP.INI File for XDebug|here]]


* Goto /applications/joomla-3.4.3-1/php/etc/php.ini
* Goto /applications/joomla-3.4.3-1/php/etc/php.ini
Line 33: Line 34:
</source>
</source>


Delete the ; in front of the text under ';; Only Zend OR (!) XDebug' so it reads like this:
<source lang="php">
;[XDebug]
;; Only Zend OR (!) XDebug
zend_extension="/Applications/mampstack-5.5.27-0/php/lib/php/extensions/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp
</source>
Then do a search for implicit_flush you will find
<source lang="php">
implicit_flush = Off
</source>
Change the Off to On
<source lang="php">
implicit_flush = On
</source>
Save your changes


Restart your apache server


===In the IDE===
===In the IDE===

Revision as of 19:35, 25 July 2015

Installation

WIP

Download and install Komodo IDE

Download and install Komodo ide

Create a project

Create a project in your installed MAMP

located on a MAC /applications/joomla-3.4.3-1/apps/joomla this will display all files in the left side panel of the IDE.

This will allow you to directly edit and debug your code.

Configure IDE for debugging

Modifying the php.ini file

In order to use the debugger you need to modify the php.ini file of the Apache server you are using. Follow these instructions here

  • Goto /applications/joomla-3.4.3-1/php/etc/php.ini
  • open up this file with your favourite text editor
  • do a search for xdebug you should find something like this:
;[XDebug]
;; Only Zend OR (!) XDebug
;zend_extension="/Applications/mampstack-5.5.27-0/php/lib/php/extensions/xdebug.so"
;xdebug.remote_enable=true
;xdebug.remote_host=127.0.0.1
;xdebug.remote_port=9000
;xdebug.remote_handler=dbgp
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir=/tmp

Delete the ; in front of the text under ';; Only Zend OR (!) XDebug' so it reads like this:

;[XDebug]
;; Only Zend OR (!) XDebug
zend_extension="/Applications/mampstack-5.5.27-0/php/lib/php/extensions/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp


Then do a search for implicit_flush you will find

implicit_flush = Off

Change the Off to On

implicit_flush = On

Save your changes

Restart your apache server

In the IDE

Open up preferences select--> languages -->PHP

Under the label 'Default php interpreter' use the following:

  • goto 'Use this interpreter' browse to
/applications/joomla-3.4.3-1/php/bin/php
  • Under the label default composer interpreter browse to
/applications/joomla-3.4.3-1/php/bin/php 
  • Under the label path to alternative PHP configuration file browse to
/applications/joomla-3.4.3-1/php/etc/php.ini


Setup for debugging.
Setup for debugging.

Test setup

WIP


With version 9.x of Komodo IDE