Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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");

Community Additions

© 2015 Microsoft