Exception Breakpoints not breaking execution.

I am trying to have PHPStorm break on exceptions, as described in this post:
https://blog.jetbrains.com/phpstorm/2013/12/just-in-time-debugging-and-php-exception-breakpoints-with-phpstorm-and-xdebug/

It can be seen that the required Breakpoints have been set:


PHPStorm is listening for debug connections, and my manually-set breakpoints break as expected. However, deliberately tripping a Notice or Warning does not break, even though the Notices and Warnings are printed to the browser. For instance:
5/0;

What might be the problem? How can I continue to trouble shoot?


This is on PhpStorm 2016.3.2 on CentOS 7.3.

PhpStorm 2016.3.2 EAP
Build #PS-163.10154.2, built on December 13, 2016
Licensed to Dotan Cohen
Subscription is active until June 15, 2017
JRE: 1.8.0_112-release-408-b2 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

 

Thank you!

8 comments

So you're not receiving new breakpoints in editor like below?

0

Correct, I am not seeing new breakpoints in places that cause an exception.

0

Thank you Dmitry, I have tested in PhpStorm-171.2272.10 and the issue remains.

For good measure, here is a working PHP script that prints a Warning to the web browser however does _not_ have a Warning Breakpoint added by PhpStorm:

<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$foo = 42/0;

 

I submit that PhpStorm is properly configured as I can add a manual breakpoint and that does in fact break as expected.

0

> I submit that PhpStorm is properly configured as I can add a manual breakpoint and that does in fact break as expected.

Not sure where exactly everything goes wrong in your case, but this definitely works:
http://recordit.co/8sMsvGW9yb

How do you run the script, from a browser?

0

I am sure that the feature works in general, however it does not work in my setup. What might be the problem? How can I continue to trouble shoot?

I've tried disabling the IdeaVIM extension and I've tried on a Scratches file as Eugene did in his screencast. I do see the PHP Warning thrown in the Console pane of he Debug window, however the breakpoint is not added when the Warning is triggered.

0

I am sorry for double asking, but:

> How do you run the script, from a browser?

0

Yes, I had originally run the script from a browser. After viewing your screencast, I also tried running the script from the Debug feature on a Scratch file. In both cases, the Warning breakpoints had not been set.

This is on PHP 5.6.29 on CentOS 7.3.

0

Please sign in to leave a comment.