It seems to be picking up the connection, but I don’t think the breakpoints are working
properly. When I put in a breakpoint, it seems to ignore it. But when I check “Break at
first line in PHP scripts", it breaks on index.php. This is pretty much useless for
debugging.
Techman224
On Dec 27, 2015, at 8:17 PM, Gergo Tisza
<gtisza(a)wikimedia.org> wrote:
On Sat, Dec 26, 2015 at 3:09 PM, Techman224 <techman224(a)techman224.ca>
wrote:
I am trying to link my vagrant instance with my
php debugger, PhpStorm. I
tried following the instructions at
https://www.mediawiki.org/wiki/MediaWiki-Vagrant#Provisioning <
https://www.mediawiki.org/wiki/MediaWiki-Vagrant#Provisioning> and
https://www.mediawiki.org/wiki/MediaWiki-Vagrant/Advanced_usage#MediaWiki_d…
<
https://www.mediawiki.org/wiki/MediaWiki-Vagrant/Advanced_usage#MediaWiki_d…gt;,
and installed XDebug in my chrome browser, but the connection isn’t
happening. My debugger keeps saying “Waiting for incoming connection with
ide key ‘#####’. Is there something missing here?
I'm not sure how much on those pages is still relevant today (apart from
enabling the zend role in vagrant, which definitely makes XDebug a lot more
reliable); debugging with PhpStorm works mostly out of the box. Just launch
vagrant, enable XDebug with a cookie/browser plugin/whatever, enable
listening to XDebug in PhpStorm by clicking the phone icon, then do
something in the browser that triggers a HTTP request, and PhpStorm will
open a setup dialog for the incoming debug request where you can match
local and remote directories. You might need to make the relevant code
locally accessible; see T88149 <https://phabricator.wikimedia.org/T88149> about
that. For CLI debugging you need to set up some environment variables as
well; see T59676 <https://phabricator.wikimedia.org/T59676>.
If that does not work then you can
set xdebug.remote_log="/vagrant/logs/xdebug.log" or something similar in a
PHP config file and see if it says anything useful.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l