Freezing and Thawing Threads in the Debugger

From RAD Studio
Jump to: navigation, search

Go Up to How To Use the Debugger


Your threaded application needs to be stopped in the Debugger before you can freeze and thaw individual threads. You can stop the application in a number of ways, including the following:

  • Set breakpoints and then choose Run > Run or Run > Step Over.
  • Press the Pause button PauseButton.png on the IDE when the application is running.
  • An exception occurs that stops the application.

To freeze a thread when using the Debugger

  1. Open the Threads window by selecting View > Debug Windows > Threads.
  2. In the Threads window, right-click the thread you want to freeze.
  3. From the context menu, select the command that applies to your situation:
    • Freeze - freezes the selected thread
    • Freeze all other threads - freezes all the other threads, but not the selected thread

To thaw a thread when using the Debugger

  1. Open the Thread Status window by selecting View > Debug Windows > Threads.
  2. In the Threads window, right-click the frozen thread that you want to thaw. (The Status should be Frozen.)
  3. From the context menu, select the command that applies to your situation:
    • Thaw - thaws the selected thread
    • Thaw all threads - thaws all the threads, including the selected thread

See Also