Hitting breakpoints but nothing rendered
I've just starting using Phpstorm on Debian so i'm setting it up for the first time.
If I put a breakpoint in code, then press the 'Debug' button, the initial request is created and i can put a stop on the line sendContent() in Zend's Response.php and see html getting echo'ed but nothing seems to get to the browser, the response is empty....?
请先登录再写评论。
Since PhpStorm is just interpreting XDebug commands I would assume that it is an expected behavior.
Sadly we're not full-time PHP developers here so we're little bit out of context in regards of "Zend's Response.php". Do you mind sharing a link to a project/set up instructions to get ourselves a copy of the app?
Sorry, the zend stuff is a red herring, what I'm basically saying is that the php echo statement is outputting markup which isn't getting into the response...seems like...
I'm getting a bit closer, but i can't work this out, when i load http://localtest.shop/index.php I get a full response, but when i click the 'Debug'/Alt-F5 key and get the full url with http://localtest.shop/index.php?XDEBUG_SESSION_START=17400 I'm getting an empty response but breakpoints are hit....If i trim the XDEBUG_SESSION_START off, I get a full response but breakpoints aren't being hit.
Yippee yay! Fixed it. Found someone else with the same problem, its the dreaded version xdebug version 2.7.2. I assumed I'd installed the latest, reminds you to go to the xdebug site and use their wizard rather than rely on apt-get.
They must have had a real laugh when they released that version.
Sorry for missing a reply. Glad this is working now!