E
E
EvolDev2016-02-12 18:16:15
xdebug
EvolDev, 2016-02-12 18:16:15

Why doesn't xdebug in phpstorm suspend session when switching from frontend to backend?

I have a virtual machine: ubuntu-server+apache+xdebug
When I start the debugging process in phpstorm and the functions on the backend are called, the session does not seem to be suspended, and if I do not have time to complete the work of the functions on the backend, then something like this:

Error Fetching http headers

Google says you can increase the default_socket_timeout in php.ini on the server. But this is not quite what we would like.
How could I pause the current session and continue it when I continue the script manually?
xdebug config:
xdebug.auto_trace	Off
xdebug.cli_color	0
xdebug.collect_assignments	Off
xdebug.collect_includes	On
xdebug.collect_params	0
xdebug.collect_return	Off
xdebug.collect_vars	Off
xdebug.coverage_enable	On
xdebug.default_enable	On
xdebug.dump.COOKIE	no value
xdebug.dump.ENV	no value
xdebug.dump.FILES	no value
xdebug.dump.GET	no value
xdebug.dump.POST	no value
xdebug.dump.REQUEST	no value
xdebug.dump.SERVER	no value
xdebug.dump.SESSION	no value
xdebug.dump_globals	On
xdebug.dump_once	On
xdebug.dump_undefined	Off
xdebug.extended_info	On
xdebug.file_link_format	no value
xdebug.idekey	STORM
xdebug.max_nesting_level	100
xdebug.overload_var_dump	On
xdebug.profiler_aggregate	Off
xdebug.profiler_append	Off
xdebug.profiler_enable	Off
xdebug.profiler_enable_trigger	On
xdebug.profiler_output_dir	/tmp/profiler
xdebug.profiler_output_name	cachegrind.out.%p
xdebug.remote_autostart	On
xdebug.remote_connect_back	Off
xdebug.remote_cookie_expire_time	3600
xdebug.remote_enable	On
xdebug.remote_handler	dbgp
xdebug.remote_host	192.168.56.1
xdebug.remote_log	/tmp/xdebug.log
xdebug.remote_mode	req
xdebug.remote_port	9000
xdebug.scream	Off
xdebug.show_exception_trace	Off
xdebug.show_local_vars	On
xdebug.show_mem_delta	Off
xdebug.trace_enable_trigger	Off
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	6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2016-02-13
@OnYourLips

For nginx, it's done like this:
https://easyengine.io/tutorials/php/increase-scrip...
For Apache, understand by analogy. And think about the fact that in 2016 you should not use such old technologies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question