Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In debug mode, is there a way to break(pause the execution) whereever it is?

If I put a breakpoint somewhere in the code, it is pausing when the program is about to read that line of code.

Sometimes while the program is running, I want to pause it. I do not know which line of code it is reading currently. Is it possible to pause the execution whereever it is, as if a breakpoint exists there?

like image 604
serdar Avatar asked Mar 20 '14 15:03

serdar


People also ask

How do I stop debugging paused?

TL;DR Right click in the area where you'd normally set breakpoints, select “never pause here” and you can prevent the debugger from stopping on exceptions or debugger statements.

How do I pause debugging?

You can press the Pause button in the debug toolbar (or hit ^⌘Y/Alt+Ctrl+Break or choose "Debug|Pause from the menu). Your application can hit a Breakpoint you have set. Your application can raise an Exception, either explicitly from your own code, or in an API your code called.

What tool lets you pause execution?

The easiest way to pause or “break” execution to inspect a line of code is to use a breakpoint, a tool that allows you to run your code up to a specified line before stopping. Breakpoints are an essential aspect of debugging, which is the process of detecting and removing errors and bugs from your code.

What is Debug break?

In user mode, this command stops the process and its threads, enabling you to regain control of the debugger. In kernel mode, this command breaks into the target computer. You can also use this command while the debugger is active.


1 Answers

Is it possible to pause the execution whereever it is, as if a breakpoint exists there?

Yes, when debugging, these are your options:

  • On the Debug menu, click Break All
  • Keyboard shortcut: Ctrl+Alt+Break
  • Using the GUI, click on the highlighted pause icon:

    enter image description here

like image 59
Yair Nevet Avatar answered Oct 07 '22 21:10

Yair Nevet