T
T
TestTojolu2015-09-10 18:25:09
Yii
TestTojolu, 2015-09-10 18:25:09

Why does xdebug in PHPStorm work for one project and not another?

Can't set up xdebug specifically for yii2 project.
For a test site where just one file in php.ini indicated:

zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.remote_enable=on

And in the storm itself, I set up Debug Configuration for PHP web Application, then set breakpoints, clicked on the beetle and it all worked. However, a similar setup for the standard basic assembly of yii2 did not work for me. In the browser, the site is opened by the link: site.local/?XDEBUG_SESSION_START=10470, and in the debugger it says "Waiting for incoming connection with ide key 10470", but nothing else happens.
Then I tried another setting, in php.ini:
zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.idekey = "PHPSTORM"
xdebug.profiler_output_dir="/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%H%R"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "/tmp/xdebug"

Then he pointed the interpreter to /usr/bin/php5 (the only thing, here for some reason it showed that "Debugger Not Installed"), set up PHP Remote Debug in the Debug Configuration, added the javascript code to start xdebug to the bookmarks, set breakpoints, turned on wiretapping, reloaded the page, but again nothing happened.
Tell me, please, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RomkaChev, 2015-09-10
@TestTojolu

Try using bookmarklets - there are specials. xdebug plugin for chrome.
In the IDE, click on the beetle, go to the site, turn on wiretapping in the plugin, reboot. Now it should work.
PS - I myself had similar problems with the launch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question