Skip to content

[Dexter] Add VisualStudio2022 support to Dexter #85248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from dex.debugger.visualstudio.VisualStudio2015 import VisualStudio2015
from dex.debugger.visualstudio.VisualStudio2017 import VisualStudio2017
from dex.debugger.visualstudio.VisualStudio2019 import VisualStudio2019
from dex.debugger.visualstudio.VisualStudio2022 import VisualStudio2022


def _get_potential_debuggers(): # noqa
Expand All @@ -41,6 +42,7 @@ def _get_potential_debuggers(): # noqa
VisualStudio2015.get_option_name(): VisualStudio2015,
VisualStudio2017.get_option_name(): VisualStudio2017,
VisualStudio2019.get_option_name(): VisualStudio2019,
VisualStudio2022.get_option_name(): VisualStudio2022,
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# DExTer : Debugging Experience Tester
# ~~~~~~ ~ ~~ ~ ~~
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""Specializations for the Visual Studio 2022 interface."""

from dex.debugger.visualstudio.VisualStudio import VisualStudio


class VisualStudio2022(VisualStudio):
@classmethod
def get_name(cls):
return "Visual Studio 2022"

@classmethod
def get_option_name(cls):
return "vs2022"

@property
def _dte_version(self):
return "VisualStudio.DTE.17.0"
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ RUN: %dexter_base list-debuggers | FileCheck %s
CHECK: lldb
CHECK: vs2015
CHECK: vs2017
CHECK: vs2019
CHECK: vs2022