> I like to learn more about debugging OOo with the VS IDE. Can you point 
> me to a guide or provide a guide in the Wiki?

I don't know if there is a guide. I figured it out myself, it isn't really that 
hard.

- build the parts of OOo you are interested in debugging with debug=true, and 
copy the resulting DLLs into their place in the OOo installation

- start OOo from Explorer, just as when using it normally

- run the Visual Studio IDE. Attach the soffice.bin process. Open one of the 
source files that contains code you want to debug. Set breakpoints.

- do whatever is needed in OOo to get the breakpoint to fire. Debug.

If you want to debug the startup mechanism it obviously is a bit more complex, 
I can't give any simple instruction for that.

Debugging works fine also if OOo is running on another machine (for instance a 
virtual machine) than the MSVS IDE. Just have the MSVS debugging monitor (look 
for msvsmon in your VS installlation, and copy that (small) folder to the 
machine where OOo is running, start msvsmon, and set it to allow remote 
debugging. (The first time you do this it will give detailled instructions if 
you need to open a "hole" in the Windows Firewall.) Then in the MSVS IDE, 
preferrably running on the machine where you built OOo (so that source files 
are found), attach to the process using the "Remote (Native only with no 
authentication)" transport, and as qualifierthe name or IP address of where 
msvsmon is running. 

--tml



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to