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>
This commit is contained in:
Mike Kaganski 2023-11-02 12:16:29 +03:00
parent 41d9584179
commit 54b5040e08
2 changed files with 12 additions and 0 deletions

View file

@ -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):

View file

@ -0,0 +1,9 @@
<SupplementalLaunchOptions>
<AttachOptions>
<AttachOptionsForConnection>
<SetupCommands>
<Command IgnoreFailures="true" Description="Enable pretty-printing for gdb">-enable-pretty-printing</Command>
</SetupCommands>
</AttachOptionsForConnection>
</AttachOptions>
</SupplementalLaunchOptions>