Intellij suspends my scripts always on the first line of my php scripts when using xdebug, and I don't know why
any ideas?
If you press and hold the Ctrl / ⌘ button while dragging the arrow, the IDE will highlight all the lines in green. When you drop the arrow, you won't jump to the line of code. Instead, the IDE will act as if you have used the Run to Cursor (⌥F9) action.
Terminate a debugger sessionClick the Stop button in the Debug tool window. Alternatively, press Ctrl+F2 and select the process to terminate (if there are two or more of them).
Use breakpoint expressions In order to change the flow of your program, you can use non-suspending breakpoints that evaluate an expression when hit. This is useful, for example, when you want to automatically modify your variables during debugging.
Probably you've solved this a long time ago, but for the record:
Uncheck Run > Break at first line in PHP Scripts (last menu option in my IDE).
Found it via Ctrl + Shift + A typing "break"
PD. Also almost went nuts while finding it...
Just if you want to localize it in the settings:
Settings > Languages & Frameworks > PHP > Debug:
External connections -> Break at first line in PHP scripts
It is the same place as the screen capture of the question, maybe they updated the view in latests versions of the IDE...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With