Export (0) Print
Expand All

Breakpoint.Language Property

Gets the language associated with the name or conditional breakpoint.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

string Language { get; }
/** @property */
String get_Language ()

function get Language () : String

Property Value

A CodeModelLanguageConstants constant.

The following example demonstrates how to use the Language property.

To test this property:

  1. Set a breakpoint in the target application.

  2. Run the add-in.

public static void Language(DTE dte)
{
    // Setup debug Output window.
    Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
    w.Visible = true;
    OutputWindow ow = (OutputWindow)w.Object;
    OutputWindowPane owp = ow.OutputWindowPanes.Add("Language Property Test");
    owp.Activate();

    // dte is a reference to the DTE object passed to you by the
    // OnConnection method that you implement when you create an add-in.
    EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;
    owp.OutputString("Programming language used to author the code: " + 
                     debugger.Breakpoints.Item(1).Language);
}

Community Additions

ADD
Show:
© 2015 Microsoft