php - Can't connect xdebug to PhpStorm -
i have big problems connect xdebug phpstorm 2016.1
web server validation shows me ok.
phpinfo:
xdebug support enabled version 2.4.0 ide key phpstorm supported protocols revision dbgp - common debugger protocol $revision: 1.145 $ directive local value master value xdebug.auto_trace off off xdebug.cli_color 0 0 xdebug.collect_assignments off off xdebug.collect_includes on on xdebug.collect_params 0 0 xdebug.collect_return off off xdebug.collect_vars off off xdebug.coverage_enable on on xdebug.default_enable on on xdebug.dump.cookie no value no value xdebug.dump.env no value no value xdebug.dump.files no value no value xdebug.dump.get no value no value xdebug.dump.post no value no value xdebug.dump.request no value no value xdebug.dump.server no value no value xdebug.dump.session no value no value xdebug.dump_globals on on xdebug.dump_once on on xdebug.dump_undefined off off xdebug.extended_info off off xdebug.file_link_format no value no value xdebug.force_display_errors off off xdebug.force_error_reporting 0 0 xdebug.halt_level 0 0 xdebug.idekey phpstorm phpstorm xdebug.max_nesting_level 256 256 xdebug.max_stack_frames -1 -1 xdebug.overload_var_dump on on xdebug.profiler_aggregate off off xdebug.profiler_append off off xdebug.profiler_enable on on xdebug.profiler_enable_trigger off off xdebug.profiler_enable_trigger_value no value no value xdebug.profiler_output_dir /home/dell/xdebug /home/dell/xdebug xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p xdebug.remote_addr_header no value no value xdebug.remote_autostart off off xdebug.remote_connect_back on on xdebug.remote_cookie_expire_time 3600 3600 xdebug.remote_enable on on xdebug.remote_handler dbgp dbgp xdebug.remote_host localhost localhost xdebug.remote_log no value no value xdebug.remote_mode req req xdebug.remote_port 9000 9000 xdebug.scream off off xdebug.show_error_trace off off xdebug.show_exception_trace off off xdebug.show_local_vars off off xdebug.show_mem_delta off off xdebug.trace_enable_trigger off off xdebug.trace_enable_trigger_value no value no value xdebug.trace_format 0 0 xdebug.trace_options 0 0 xdebug.trace_output_dir /tmp /tmp xdebug.trace_output_name trace.%c trace.%c xdebug.var_display_max_children 128 128 xdebug.var_display_max_data 512 512 xdebug.var_display_max_depth 3 3
php.ini
zend_extension = /usr/lib/php5/20131226/xdebug.so xdebug.remote_enable=1 xdebug.remote_port=9000 xdebug.idekey=phpstorm xdebug.profiler_enable=1 xdebug.profiler_output_dir=/home/dell/xdebug xdebug.remote_connect_back=1
i have project files under /home/dell/projects/dostawca/
, created symlink in /var/www/
i have configured "php remote debug" key "phpstorm" , server "dostawca.local"
in current situation still "waiting incoming connection ide key 'phpstorm'. tried lot different configurations/options of xdebug , phpstorm, nothing help(sometimes connection successful nothing frames shown, in other situation got "cannot evaluate expression 'isset($_server['php_ide_config'])'").
the new project directly inside /var/www/project
, on http://localhost/project
, without vhost doesn't work too
i haven't got idea what's wrong
you have create ssh tunnel on port 9000
xdebug work. configure authentication options accordingly (this tunnel uses private key):
ssh -r 9000:localhost:9000 user@127.0.0.1 -i /path/to/private_key -p 22
also make sure listen incoming debug connections when running debug session.