{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/4488","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/4488/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/4488/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/4488/events","html_url":"https://github.com/facebook/hhvm/issues/4488","id":52381580,"number":4488,"title":"Odd behaviour with Vagrant, PHPStorm and Xdebug","user":{"login":"euphio","id":3789769,"avatar_url":"https://avatars.githubusercontent.com/u/3789769?v=3","gravatar_id":"","url":"https://api.github.com/users/euphio","html_url":"https://github.com/euphio","followers_url":"https://api.github.com/users/euphio/followers","following_url":"https://api.github.com/users/euphio/following{/other_user}","gists_url":"https://api.github.com/users/euphio/gists{/gist_id}","starred_url":"https://api.github.com/users/euphio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphio/subscriptions","organizations_url":"https://api.github.com/users/euphio/orgs","repos_url":"https://api.github.com/users/euphio/repos","events_url":"https://api.github.com/users/euphio/events{/privacy}","received_events_url":"https://api.github.com/users/euphio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/hhvm/labels/php5%20incompatibility","name":"php5 incompatibility","color":"837ced"}],"state":"closed","locked":false,"assignee":{"login":"jwatzman","id":575697,"avatar_url":"https://avatars.githubusercontent.com/u/575697?v=3","gravatar_id":"","url":"https://api.github.com/users/jwatzman","html_url":"https://github.com/jwatzman","followers_url":"https://api.github.com/users/jwatzman/followers","following_url":"https://api.github.com/users/jwatzman/following{/other_user}","gists_url":"https://api.github.com/users/jwatzman/gists{/gist_id}","starred_url":"https://api.github.com/users/jwatzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwatzman/subscriptions","organizations_url":"https://api.github.com/users/jwatzman/orgs","repos_url":"https://api.github.com/users/jwatzman/repos","events_url":"https://api.github.com/users/jwatzman/events{/privacy}","received_events_url":"https://api.github.com/users/jwatzman/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2014-12-18T16:07:13Z","updated_at":"2015-06-25T20:13:54Z","closed_at":"2015-06-19T21:43:55Z","body":"I'm having problems getting PhpStorm and the internal Xdebug in HHVM playing nicely on a vagrant box, so thought I'd post this here as it looks like a potential bug. \r\n\r\nPhpStorm is listening on Port 9080, if I remove all remote servers upon first run PhpStorm gives me the usual \"Incoming Connection from Xdebug\". \r\n\r\nAfter I select the correct mapping and the first breakpoint is hit HHVM appears to hang before returning a 504 Gateway Time-out. If I remove the breakpoint then the load is instant, so clearly the PhpStorm and Xdebug appear to be communicating, but the debug window never shows any stack info / break point controls.\r\n\r\nI'm on Ubuntu 14.04, Vagrant 1.6.5, PhpStorm 8.0.2\r\nVM is also 14.04 with Nginx + HipHop VM 3.4.1, Extension API: 20140829\r\n\r\n\r\nphp.ini xdebug settings.\r\n\r\n    xdebug.enable=1\r\n    xdebug.remote_enable=1\r\n    xdebug.idekey=\"PHPSTORM\"\r\n    xdebug.remote_host=\"10.0.2.2\"\r\n    xdebug.remote_port=\"9080\"\r\n    xdebug.remote_autostart=0\r\n    xdebug.remote_connect_back=1\r\n\r\n\r\n\r\nBelow is the output from the xdebug remote connection log before the halt:\r\n\r\n    Log opened at[2014-12-18 14:59:16]\r\n    I: Checking remote connect back address.\r\n    I: Remote address found, connecting to 192.168.56.1:9089.\r\n    I: Connected to client. :-)\r\n    -> <init xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" fileuri=\"file:///var/www/public/index.php\" language=\"PHP\" protocol_version=\"1.0\" appid=\"9660\" idekey=\"PHPSTORM\"><engine version=\"\"><![CDATA[xdebug]]></engine><author><![CDATA[HHVM]]></author><url><![CDATA[http://hhvm.com/]]></url><copyright><![CDATA[Copyright (c) 2002-2013 by Derick Rethans]]></copyright></init>\r\n    \r\n    <- feature_set -i 1 -n show_hidden -v 1\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" command=\"feature_set\" transaction_id=\"1\" feature=\"show_hidden\" success=\"1\"></response>\r\n    \r\n    <- feature_set -i 2 -n max_depth -v 1\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" command=\"feature_set\" transaction_id=\"2\" feature=\"max_depth\" success=\"1\"></response>\r\n    \r\n    <- feature_set -i 3 -n max_children -v 100\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" command=\"feature_set\" transaction_id=\"3\" feature=\"max_children\" success=\"1\"></response>\r\n    \r\n    <- status -i 4\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" command=\"status\" transaction_id=\"4\" status=\"starting\" reason=\"ok\"></response>\r\n    \r\n    <- step_into -i 5\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" status=\"break\" reason=\"ok\" command=\"step_into\" transaction_id=\"5\"><xdebug:message lineno=\"12\" filename=\"file:///var/www/public/index.php\"></xdebug:message></response>\r\n    \r\n    <- breakpoint_set -i 6 -t line -f file:///var/www/public/index.php -n 32\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" command=\"breakpoint_set\" transaction_id=\"6\" id=\"18\" state=\"enabled\"></response>\r\n\r\n\r\n\r\nAfter this a very peculiar thing happens though, if I click the \"Add method to skip list\" button in PhpStorm, It continues communicating with Xdebug as if stepping through variables, one with each click, for example:\r\n\r\n    <- stack_get -i 8\r\n    -> <response xmlns=\"urn:debugger_protocol_v1\" xmlns:xdebug=\"http://xdebug.org/dbgp/xdebug\" command=\"stack_get\" transaction_id=\"8\"><stack where=\"{main}\" level=\"0\" type=\"file\" filename=\"file:///var/www/public/index.php\" lineno=\"12\"></stack></response>\r\n\r\n\r\nEventually the expected controls are shown after several of these \"stack_get\" calls have been hackily stepped through in this manner.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/115382345","html_url":"https://github.com/facebook/hhvm/issues/4488#issuecomment-115382345","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/4488","id":115382345,"user":{"login":"lbadger","id":5921827,"avatar_url":"https://avatars.githubusercontent.com/u/5921827?v=3","gravatar_id":"","url":"https://api.github.com/users/lbadger","html_url":"https://github.com/lbadger","followers_url":"https://api.github.com/users/lbadger/followers","following_url":"https://api.github.com/users/lbadger/following{/other_user}","gists_url":"https://api.github.com/users/lbadger/gists{/gist_id}","starred_url":"https://api.github.com/users/lbadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbadger/subscriptions","organizations_url":"https://api.github.com/users/lbadger/orgs","repos_url":"https://api.github.com/users/lbadger/repos","events_url":"https://api.github.com/users/lbadger/events{/privacy}","received_events_url":"https://api.github.com/users/lbadger/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T20:13:54Z","updated_at":"2015-06-25T20:13:54Z","body":"I just built 3.8.0-dev still seems to have issues. It connected once with PhpStorm 8.0.3 and seemed to work for a minute.\r\n\r\nI checked the HHVM error log and I get\r\n\r\n```Unhandled server exception: \\n```\r\n"}}