dgoosens, 10 months ago Remember you can make @Xdebug breakpoints conditional in #PHPStorm saves a lot of time... and avoids leaving dirty if statements in your code #php
Remember you can make @Xdebug breakpoints conditional in #PHPStorm
saves a lot of time... and avoids leaving dirty if statements in your code
if
#php
dgoosens, 10 months ago and there is more !! click on "More" and you will be able to: add additional logging info add statements that you want to evaluate when hitting the breakpoint only trigger the breakpoint if another breakpoint was hit make sure the breakpoint is only triggered once @Xdebug rocks ! #php #PHPStorm image/png
and there is more !! click on "More"
and you will be able to:
@Xdebug rocks !
#php #PHPStorm
image/png
dgoosens, 10 months ago (edited 10 months ago) one of my personal favorites is an automatic breakpoint whenever an exception is thrown this is easy as pie with @Xdebug Simply add a "PHP Exception Breakpoint" that will suspend as soon as an Exception is hit Once more, one can add conditions, for instance, the Exception's type or subtype (@derickr just pointed out to me it does an instance_of check) #brilliant ! #php #phpstorm
one of my personal favorites is an automatic breakpoint whenever an exception is thrown
this is easy as pie with @Xdebug
Simply add a "PHP Exception Breakpoint" that will suspend as soon as an Exception is hit
Once more, one can add conditions, for instance, the Exception's type or subtype (@derickr just pointed out to me it does an instance_of check)
instance_of
#brilliant ! #php #phpstorm
Xdebug, 10 months ago @dgoosens It does an instance_of check, so you don't need the exact name either. For example, you can do DateException (PHP 8.3) and it will pause on its children too.
@dgoosens It does an instance_of check, so you don't need the exact name either. For example, you can do DateException (PHP 8.3) and it will pause on its children too.
michael, 10 months ago (edited 10 months ago) @dgoosens oh, I did not know about that yet. That’s pretty cool!
@dgoosens oh, I did not know about that yet. That’s pretty cool!
bobmagicii, 10 months ago @dgoosens not having to explain what the var dumps with the db credentials are, is enough to make sure i clean up my old school debugging 🤣
@dgoosens not having to explain what the var dumps with the db credentials are, is enough to make sure i clean up my old school debugging 🤣
Add comment