Hi Ashod,

Ashod Nakashian schrieb:
 > does there exists a written step-by-step tutorial, how to debug LO
using Visual Studio, which is suitable for beginners?

1) Build with --enable-dbgutil --enable-debug on Windows.

it seems, that I need to make a new build first, before I can test the rest. That will last a while.

2) Run the application in question from instdir/program.
3) Run VS and from Debug menu, click Attach to Process...
4) Find soffice.bin from the list (the title will help you find the
correct application, in case you have many running).
5) Set a breakpoint, break, continue, and enjoy debugging.

Notice that this will not load the LO project or anything fancy like
that. This is just purely for debugging. But it works perfectly well if
you build LO correctly.

If you open the correct source in VS (after attaching to soffice.bin)
and place a breakpoint, VS will know that it's part of the LO binary you
are debugging.

You can also save this solution so you can reopen the same files with
breakpoints at a later time to redo a similar debugging session.

The Wiki page https://wiki.documentfoundation.org/Development/BuildingOnWindows mentions "Build a project file for Visual Studio". How is that connected to your steps?

Kind regards
Regina



On Thu, Jul 30, 2015 at 5:24 PM, Regina Henschel
<rb.hensc...@t-online.de <mailto:rb.hensc...@t-online.de>> wrote:

    Hi all,

    does there exists a written step-by-step tutorial, how to debug LO
    using Visual Studio, which is suitable for beginners? Or can someone
    guide me? I have never used Visual Studio up to now.

    I want to look why the MathML import has become so bad in LO
    (tdf#75171).

    Kind regards
    Regina
    _______________________________________________
    LibreOffice mailing list
    LibreOffice@lists.freedesktop.org
    <mailto:LibreOffice@lists.freedesktop.org>
    http://lists.freedesktop.org/mailman/listinfo/libreoffice



_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to