Error building Visual Studio 2013 project file for LibreOffice on Windows

Tor Lillqvist tml at iki.fi
Mon Feb 16 22:34:28 PST 2015


> Not many of us use it,

True.

> However, that doesn't mean you can't use Visual Studio for debugging, it is very simple to
> just run VS and start a program and debug from it, and it will load the correct source files, etc.

In more detail, what works fine is: Start the LibreOffice you just
built (presumably with debugging information --enable-debug) by
running instdir/program/soffice.exe. Start Visual Studio, but don't
open or create any project or solution. (It makes no difference
whether you start LibreOffice or Visual Studio first.)

Then attach the soffice.bin (not soffice.exe) process in Visual
Studio. soffice.bin is the actual LibreOffice process. Then open the
source file(s) you want to debug in Visual Studio and set one or
several breakpoints. Then do whatever is needed in LibreOffice to
cause the breakpoint to be reached. Then debug.

Obviously, this way, attaching to an already running LibreOffice
process, you won't be able to debug the start-up code in LibreOffice.
But that is seldom what one would want to debug anyway.

> I would really like to be able to use the comfort of Visual Studio to
> browse around the source code

I am not sure if the Visual Studio "integration" even if it worked as
advertised would match your expectations. But I might be too
pessimistic. Maybe somebody who actually has used (or even worked on)
the integration can respond.

--tml


More information about the LibreOffice mailing list