This documentation is archived and is not being maintained.

Debugger.Languages Property

Gets a list of languages that the debugger supports.

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

Languages Languages { get; }
/** @property */
Languages get_Languages ()

function get Languages () : Languages

Property Value

A Languages collection.

Languages returns a Languages collection containing a list of languages that the debugger supports. This list is dictated by the version of Visual Studio and the installed language add-ons.

The following example demonstrates how to use the Languages property.

To test this property:

  1. Open the target project and run the add-in.

public static void Languages(DTE dte)
    // Setup the 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("Languages Test");

    foreach(EnvDTE.Language lang in dte.Debugger.Languages)
        owp.OutputString(lang.Name + "\n");