N
N
Nikolai Novosad2015-04-04 23:51:00
linux
Nikolai Novosad, 2015-04-04 23:51:00

Waiting for xdebug connection in NetBeans?

Hello.
I am using NetBeans 8.0.2, Mageia 4, php 5.5.23, Xdebug v2.2.4.
When using xdebug, a message appears - Waiting for connection . There is a link to mozilla at localhost/info.loc/?XDEBUG_SESSION_START=netbeans-...
Phpinfo() shows that xdebug is installed.
Here is the xdebug setup.

; zend_extension_ts=/usr/lib/php/extensions/xdebug.so
zend_extension=/usr/lib/php/extensions/xdebug.so

[xdebug]
xdebug.auto_trace = 0
xdebug.collect_includes = 1
xdebug.collect_params = 0
xdebug.collect_return = 1
xdebug.collect_vars = off
xdebug.default_enable = on
xdebug.dump_globals = 1
xdebug.dump_once = 1
xdebug.dump_undefined = 0
xdebug.extended_info = 1
xdebug.idekey = 'netbeans-xdebug'
xdebug.manual_url = 'http://www.php.net'
xdebug.max_nesting_level = 100
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = /tmp
xdebug.profiler_output_name = 'cachegrind.out.%p'
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = 'dbgp'
xdebug.remote_host = 'localhost'
xdebug.remote_log = 
xdebug.remote_mode = 'req'
xdebug.remote_port = 9000
xdebug.show_exception_trace = 0
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 0
xdebug.trace_format = 0
xdebug.trace_options = 0
xdebug.trace_output_dir = '/tmp'
xdebug.trace_output_name = 'trace.%c'
xdebug.var_display_max_children = 128
xdebug.var_display_max_data = 512
xdebug.var_display_max_depth = 3

The port and key settings are the same in xdebug and netbeans.
Port 9000 is not occupied by others.
Because xdebug can not start?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
65536, 2015-04-05
@65536

replace:
xdebug.default_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.remote_autostart comment out I don’t know the default, like
put it off in the mazilla (you have it) here is manual.pohape.ru/xdebug , 3 buttons will be added and you can turn on profiling tracing and debug when needed. it eats a lot and should not be enabled by default
if the server is at a different address than the browser, then you need to register not the localhost, but something like xdebug.remote_host = "192.168.1.2" - the address from which the server is accessed,
I don’t know how netbinse is configured, do it by analogy with the instructions on the link, everything should be about the same
in the settings of the Mazilov add-on should be what you have in the netbeans-xdebug config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question