The debug progress
will use DBGp protocol.
This can be applied
to Notepad++ or Sublime Text.
In local machine:
Set the break points somewhere
Add to URL ?XDEBUG_SESSION_START=notepad
Or use some kind of extension to SET the cookie XDEBUG_SESSION_START=notepad
Uncheck Bypass (we really need this map)
Remote path: file:///var/www
Local path: C:\Dev\www
idekey: notepad
Remote server IP: obiviously
The local machine must listen to port 9000, Notepad++ will
listen using this. The remote server should be able to connect to local machine
using port 9000 (by NAT, tunnel, etc…)
In remote server:
apt-get install php5-xdebug
Edit php.ini
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
; xdebug.remote_host=10.0.0.2
; This specify the local machine IP (exposed, not local
address)
; This is important: to use any IP it detects – less pain to
setup
xdebug.remote_connect_back
= 1
xdebug.remote_mode=req
xdebug.remote_log="/var/log/xdebug.log"
xdebug.idekey="notepad"
xdebug.remote_port=9000
No comments:
Post a Comment
New comment