FYI: We simply rename soffice.bin to soffice.bin.exe and open in it Visual
C++. Then add those path you mentioned in Project Properties.
Thanks.
On Mon, Feb 7, 2011 at 4:56 PM, Tantai Tanakanok <tantai@osdev.co.th> wrote:
Thanks Tor,
It's work.
On Mon, Feb 7, 2011 at 3:33 PM, Tor Lillqvist <tlillqvist@novell.com>wrote:
I success debug with Attach to process solution but I want to debug the
code
that execute when LibO start.
Ah. That is always hard for me because
1) I never remember which source file it is that actually contains the
"main" program of soffice.bin. There are half a dozen or so files with
promising names and/or promising directory names... of course none of them
has any comment giving a short descreiption of its purpose.
2) Once you figure out which file actually is the real main, you then need
to build that stuff with debug=t, open the soffice.bin in VS (does VS like
that, does it understand that it is a normal executable even if called .bin,
don't know), and I guess set in the "project's" properties PATH so that it
includes the URE/bin and Basis/program directories, and then just start it
under the debugger.
Occasionally I have found it easier to just add a "volatile int hang=1;
while (hang);" loop in the main program or some other low-level enough
function, once I find it, and start it normally and just attach soffice.bin
in the debugger, break it, set breakpoints, set hang to zero, and
continue...
--tml
--
_/|\_ Tantai Thanakanok. Open Source Development Co., Ltd.
Tel: +66 38 311816, Fax: +66 38 773128, http://www.osdev.co.th/
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
--
_/|\_ Samphan Raruenrom. Open Source Development Co., Ltd.
Tel: +66 38 311816, Fax: +66 38 773128, http://www.osdev.co.th/
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.