Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug behat features using xdebug?

Tags:

behat

Having hard time with Behat, cent find the way to debug (php/xdebug using breakpoints and steps). Does anybody have experience or maybe there is better way to do the same?

Edited:

"behat/mink": "*",
"behat/mink-extension": "*",
"behat/mink-zombie-driver": "*@dev",
"behat/mink-selenium2-driver": "*"

Testing regular feature on website.

like image 860
Aram Avatar asked Apr 24 '14 17:04

Aram


1 Answers

You should set the following environment variable before launching your tests:

XDEBUG_CONFIG="XDEBUG_SESSION_START="

It works for me.

like image 109
Serge HARDY Avatar answered Oct 13 '22 23:10

Serge HARDY