php - Why can't I step through PHPunit tests with XDebug when I run them from the command line? -


php, xdebug, , ide (phpstorm) configured properly. phpstorm listening, , it's picking debug session, never hits breakpoint in unit test class , i'm unable step through it. entire test runs.

anyone have ideas?

i can step phpunit tests without problem using xdebug. however, did notice seems skip statements (such simple assignment variables in function without else), spread breakpoints around.

make sure you've set path mapping properly, correct version of library mapped over.

if you're using xdebug command-line, have set environment variables - see here , here.

in case, following environment variables needed set in remote box , run remote box. 10.0.2.2 works ok virtualbox vms - need point local machine.

export xdebug_config="idekey=phpstorm remote_host=10.0.2.2 remote_port=9000" export php_ide_config="servername=[yourservernamehere]" 

enter image description here


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -