ssoldatenkov
ssoldatenkov

Reputation: 418

Enable "break on error" with xDebug in PHPStorm

I can debug with xDebug in PHPStorm by setting breakpoints. But I really want to jump back into IDE when runtime error has occurred (e.g. null reference).

Is that possible?

Upvotes: 17

Views: 9540

Answers (2)

gregor
gregor

Reputation: 558

Yes, it is now. The feature was just added to PhpStorm 7.1 release.

Blog entry with details: http://blog.jetbrains.com/phpstorm/2013/12/just-in-time-debugging-and-php-exception-breakpoints-with-phpstorm-and-xdebug/

Upvotes: 7

nnmatveev
nnmatveev

Reputation: 126

Looks like 'xdebug.remote_mode=jit'(http://xdebug.org/docs/remote#remote_mode) configuration option will do that. I tested it with the latest PhpStorm release(2.1.3) and found that it isn't supported. Please vote - http://youtrack.jetbrains.net/issue/WI-7353

Upvotes: 1

Related Questions