IDebugHostContextAlternator::SwitchTo method (dbgmodel.h)

The SwitchTo method changes or switches the debugger engine context to the IDebugHostContext from which the IDebugHostContextControl was retrieved. Unlike a full context switch, this change is temporary, and not all debugger functionalities may be available or may work as expected unless the context is switched back.

Syntax

HRESULT SwitchTo(
  bool fullSwitch
);

Parameters

fullSwitch

A boolean value that indicates whether the switch should be a "full" context switch. If set to true, it indicates a complete switch to the new context, while false indicates a temporary switch.

Remarks

It allows for transitioning between different debugging contexts without committing to a permanent switch. This feature is useful in scenarios where developers want to test or inspect a particular context without losing the original debugging state.

Requirements

Requirement Value
Header dbgmodel.h

See also