summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-11-02 12:16:29 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-11-02 13:43:51 +0100
commit54b5040e0842c85138bb9d800224016054f02778 (patch)
tree3909267fca0f1d26fa55f713713b849419db82e4 /bin
parent41d9584179ef7b4e18eda47c2c0a955df8c087a5 (diff)
VS IDE integration: enable Python pretty printers when debugging a WSL build
See https://learn.microsoft.com/en-us/cpp/linux/deploy-run-and-debug-your-linux-project#debug-with-attach-to-process Change-Id: I16d50ebe5f087518de1953ea1f9aad4180714cc7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158789 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gbuild-to-ide3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 928cde4ae9fc..ce89a979a1d0 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -968,6 +968,9 @@ class VisualStudioIntegrationGenerator(IdeIntegrationGenerator):
all_projects += projects
self.write_solution(os.path.join(self.solution_directory, 'LibreOffice.sln'), all_projects)
+ # this enables Python GDB pretty printers when debugging a WSL Linux build from VS
+ MIEngine_options_path = os.path.join(gbuildparser.srcdir, 'solenv/vs/Microsoft.MIEngine.Options.xml')
+ shutil.copy(MIEngine_options_path, self.solution_directory)
@staticmethod
def gen_guid(category, name):