Share via


Debugger.Languages Property

Gets a list of languages that the debugger supports.

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

Syntax

'Declaration
ReadOnly Property Languages As Languages
Languages Languages { get; }
property Languages^ Languages {
    Languages^ get ();
}
abstract Languages : Languages with get
function get Languages () : Languages

Property Value

Type: EnvDTE.Languages
A Languages collection.

Remarks

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.

Examples

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");
    owp.Activate();

    foreach(EnvDTE.Language lang in dte.Debugger.Languages)
        owp.OutputString(lang.Name + "\n");
}
Shared Sub Languages(ByRef dte As EnvDTE.DTE)
    Dim str As String
    For Each language As EnvDTE.Language In dte.Debugger.Languages
        str += vbCrLf + language.Name.ToString()
    Next
    MessageBox.Show("List of languages: " + str, "Debugger Test - Languages")
End Sub

.NET Framework Security

See Also

Reference

Debugger Interface

EnvDTE Namespace

Language