debugging - PhpStorm debugger breakpoint at variable use -
is possible set "php exception breakpoint" inside of phpstorm debugger triggers each time specific variable used?
for example have $_get['foo']
in request , want debugger pause every time variable $_get['foo']
used in code.
exception breakpoints trigger when error has occurred, short answer "no."
however, can right-click (or control+click, mac) top folder in source tree in project file browser , choose "find in path" locate instances of $_get['foo']
. once know are, create normal breakpoints in usual way. put them "group," according intentions breakpoints:
- create breakpoints everywhere
$_get['foo']
referenced, using "find in path..." feature of project file browser search them globally (find main folder of project; right-click pc or [control]+[click] mac find option). - once breakpoints set everywhere find
$_get['foo']
, click run > view breakpoints show them in list. - select of corresponding breakpoints using [command]+[click] or [shift]+[click] select multiple entries, if necessary.
- right-click or [control]+[click] group of selected breakpoints in list (or individual breakpoint, if like) , choose move group. if not have groups made yet, choose create group make new one.
in view breakpoints screen, can enable or disable entire breakpoint group checking box. when group , breakpoints no longer needed, can delete group clicking [-] minus button.
Comments
Post a Comment