This plugin allows you to use gedit-3 as a debugging-client using the DBGp protocol (e.g.: XDebug).
This plugin allows you to use gedit-3 as a debugging-client using the DBGp protocol (e.g.: XDebug).
This plugin is licenced under the GNU General Public Licence version 3.
If you do not know what that means, see the file ‘LICENCE’.
I have successfully tested this plugin under the following setups:
Execute the following command:
git clone https://github.com/addiks/gedit-dbgp-plugin.git
https://github.com/addiks/gedit-dbgp-plugin/archive/master.zip
Extract the zip-archive anywhere you want.
First thing you should do is to set up the profiles.
First click on the menu in: Debugging > Start listening for debugging sessions
This will open all ports from all profiles and register with all DBGp-proxies.
Also, this will add a new gutter on every open gedit-window.
(a gutter is some sidebar-thingy like the one containing the line-numbers)
Click on the gutter where you want to add breakpoints (just above where you want to debug your code).
To start the debugging-session, simple open the menu “Debugging” > “XDebug / HTTP” “Send start-debugging request to: my-profile-name”.
If everything (including the server *) is properly configured, the debug session should start right away.
(*: Make sure xdebug in apache-php is propery configured to connect either directly to gedit or to a proxy that is configured in gedit.)
If you see the session-window open and close directly afterwards, you probably have not defined any breakpoints.
When you are done debugging, click on the menu in: Debugging > Stop listening for debugging sessions
Execute this to start a debugging-session for a PHP-script called over CLI (command line interface):
php -d xdebug.remote_autostart=1 yourscript.php
Make sure xdebug in this cli is propery configured to connect either directly to gedit or to a proxy that is configured in gedit.