LanguageService.OnModeChange Method (DBGMODE)


Called whenever the debug mode has changed while debugging.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public virtual int OnModeChange(
	DBGMODE dbgmodeNew


Type: Microsoft.VisualStudio.Shell.Interop.DBGMODE

[in] The new debug mode as specified by a value from the DBGMODE enumeration.

Return Value

Type: System.Int32

If successful, returns S_OK; otherwise, returns an error code.

If your language service needs to adjust for different debugging modes then you must derive a class from the LanguageService class and implement this method. Be sure to call the base class version of this method before your implementation.

The base method sets an internal field to the new debug mode value.

Return to top