Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring breakpoint conditions


PhpStorm provides you ways to customize the breakpoints. So you have some more comfort to sit back and enjoy the debugging happening, while being sure that your task will be done in time.

How to do it...

  1. Once you set a breakpoint, you can press Ctrl + Shift + F8 to get a configuration panel. Using the panel, you can change the regular breakpoint to a temporary breakpoint.

  2. Select the checkbox next to the Remove once hit option. That breakpoint will only be existent till the breakpoint is hit once.

  3. You can select Log message to console to output once this breakpoint gets hit.

  4. You can create an expression to be evaluated once this breakpoint gets hit by selecting the Log evaluated expression checkbox. You can also keep this breakpoint dormant conditionally.

  5. You can tell PhpStorm to activate this breakpoint to remain disabled until an exception of a particular type is thrown, as shown in the following screenshot:

How it works...

Again, there is no logical explanation...