DELAPARRA
Index
Color
NL
Category: Keyboard shortcuts

Toggle Breakpoint

Explained by Updated

What is Toggle Breakpoint?

Toggle Breakpoint: Set or clear a breakpoint on the current line so execution pauses there. Toggle Breakpoint sets or removes a breakpoint on the current line, the point where the debugger pauses execution. In VS Code press F9; in JetBrains IDEs, Ctrl+F8 or Cmd+F8. Clicking in the margin next to the line number works too.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Toggle Breakpoint

How is Toggle Breakpoint used in practice?

When execution reaches the breakpoint, everything stops, and you can inspect variables, the call stack and expressions at that exact moment.

What should you keep in mind with Toggle Breakpoint?

Right-click a breakpoint for more options. A conditional breakpoint only pauses when an expression is true, such as $order->id === 4821, which is invaluable in loops. A logpoint prints a message without stopping, like a temporary log line that never needs to be removed from the code. Clear old breakpoints now and then, so the debugger does not stop in places you have long forgotten about.

At a glance

CategoryKeyboard shortcuts
Explained by
Updated

More Keyboard shortcuts terms

All terms starting with T

Skills

Download all skills (zip)

Manuals

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.