Debugging with XDebug + PHPStorm force me to always step into -


i trying debug codeception tests.

my debug platform using phpstorm + xdebug working great when using browser right ide-key cookie.

however, when trying debug codecept using cli encounter following problem:

  • if put breakpoint in cest class, behavior normal. able skip functions , click "resume" stop debugging.
  • but whenever put breakpoint in my code (i.e controllers or namespace classes), xdebug becomes unusable:

if try resume, step out or step over, xdebug ignores request , steps into current line.

this makes testing difficult go on with.

i have tried using 2 platforms: both usual vagrant + nginx + php5-fpm (with remote debug), , wamp (local debug).

any appreciated!

--

update: well, has nothing codeception. tried testing phpunit , same happens. doesn't seem issue cli also, since tried debugging phpunit browser, no luck.

i thought maybe it's phpstorm bug, looking @ xdebug log, see correct methods called:

<- step_over -i 41 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="41" status="break" reason="ok"> 

step_over called, not step_into. maybe bug xdebug?

weird thing is, isn't happening. after changing configurations doesn't happen, bug seems coming back...

i ran same problem , able fix deleting .idea directory , having phpstorm recreate it.

this seemed heavy handed fix me , after trial , error able trace issue down watches defined in phpstorm.

you should able fix issue removing watches. may need let current debug session finish, next 1 should work correctly.


Comments