Sublime Forum

Step-by-Step Guide on Xdebug Remote Setup

#1

Hi, first off: I’ve just got into using Sublime Text 2 for php development, and it’s great! The one thing I haven’t got set up is Xdebug.

I’m inexperienced with this program. It has been set up on our work development server. If you need it, the config file is:

[code]; Enable xdebug extension module
zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.remote_autostart=Off
xdebug.remote_enable=on
xdebug.remote_handler=“dbgp”
xdebug.remote_mode=“req”
xdebug.remote_port=9000
xdebug.remote_log="/tmp/php_remote.log"
xdebug.remote_host=“localhost”
xdebug.idekey=“ECLIPSE_DBGP”
xdebug.auto_trace=On
xdebug.cli_color=1
xdebug.collect_assignments=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.collect_vars=On
xdebug.dump_undefined=On

; stacktraces will be shown by default on an error event
xdebug.default_enable=0

; disable the @ (shut-up) operator so that notices, warnings and errors are no longer hidden.
;xdebug.scream=1

; Enables Xdebug’s profiler which creates files in the profile output directory
;xdebug.profiler_enable=1

; The directory where the profiler output will be written to
;xdebug.profiler_output_dir=/tmp/xdebug

; This setting determines the name of the file that is used to dump traces into.
;xdebug.profiler_output_name=%R-cachegrind.out.%t

; xdebug.remote_connect_back=On
[/code]

My files are on both my local machine, and the server - synced with the SFTP plugin.

On my client machine I’m running this plugin: https://github.com/Kindari/SublimeXdebug

I’m not at all sure how I should be setting up the config file for this plugin in order to connect.

By the way I downloaded the Xdebug enabler plugin for chrome which I assume I need.

So if anyone can let me know how to configure this plugin to connect to this server, that would be greatly appreciated!

0 Likes