> 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



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

Reply via email to