Answer the question
In order to leave comments, you need to log in
Netbeans / xdebug (remote) - connection fails... what am I doing wrong?
Good day.
I can't get xdebug on a remote server (freebsd) to work with neatbeans on my local machine (windows). Please suggest what and where else can be tweaked?
So, what we have:
On the server:
Hosted by Ru-Center, FreeBSD/Apache/Nginx, PHP 5.6, installed xdebug,
PHP.INI (in the xDebug part):
[debug]
zend_extension="/home/USERNAME/usr/php/lib/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_port=9009
;xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
xdebug.remote_log="/home/USERNAME/logs/xdebug/xdebug.log"
xdebug.profiler_output_dir="/home/USERNAME/logs/xdebug/profiler/"
xdebug.trace_output_dir="/home/USERNAME/logs/xdebug/trace/"
R9009 - localhost:9009
tcp6 0 0 localhost.9009 *.* LISTEN
tcp4 0 0 nosorog.nichost..14107 localhost.9009 SYN_SENT
tcp6 0 0 localhost.9009 *.* LISTEN
from socket import *
from time import sleep
host = ''
port = 9009
sock = socket(AF_INET, SOCK_STREAM)
print 'sock.bind...'
sock.bind((host, port))
sock.listen(5)
while 1:
print ' sock.accept - listening for incoming connection...'
conn, addr = sock.accept()
print ' connected from '+str(addr)
sleeptime = 10
print ' sleep for ' + str(sleeptime) + ' sec before force close connection...'
sleep(sleeptime)
print ' conn.close...'
conn.close()
print ' disconnected from '+str(addr)
print 'sock.close...'
sock.close()
ssh -p 9009 localhost
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question