Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E8A3D558 for ; Thu, 1 Nov 2012 16:23:54 +0000 (UTC) Received: (qmail 74324 invoked by uid 500); 1 Nov 2012 16:23:52 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 74200 invoked by uid 500); 1 Nov 2012 16:23:52 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 74166 invoked by uid 99); 1 Nov 2012 16:23:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 16:23:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of awf.aoo@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 16:23:41 +0000 Received: by mail-bk0-f47.google.com with SMTP id jk7so1025172bkc.6 for ; Thu, 01 Nov 2012 09:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=JSb3fNy/Deay/BK6gVwWpp0MD2jj/f+CS5khfHCDMX4=; b=s012yHDoUxYnT026snTlV/16QW0BvkIhn+FGAAAIH7uAF60DcXhoZo9Ng8dp1rY+N+ YClV9dII3W3E8sJEnM737c6v4pcWrjoycix2d1xKiwvI4j+VKLmFFBmh7BATnVxpIY5x FgPMudobdwf29bWVwz+T8Buqw9qNdBTM7BPmYpeyIMVdN5UYv69niecgoevxJA1srXnX IeZfil8sdI0FOYP7r1EEwhiAZvKL8Uxb8dyhMIcALwrW9Ps1vQTRCrz2zyAWOkn2jjHd 3SMrflgE8DUT6S+DcKzkTLF3v1Dtt2miQinuA9AIdReQ7vlgAtUErHvXdegPoKy7Bfes ECIw== Received: by 10.205.130.9 with SMTP id hk9mr8238877bkc.52.1351787001694; Thu, 01 Nov 2012 09:23:21 -0700 (PDT) Received: from [9.155.131.83] (deibp9eh1--blueice2n2.emea.ibm.com. [195.212.29.172]) by mx.google.com with ESMTPS id 1sm5439564bks.3.2012.11.01.09.23.20 (version=SSLv3 cipher=OTHER); Thu, 01 Nov 2012 09:23:21 -0700 (PDT) Message-ID: <5092A1F6.6060305@googlemail.com> Date: Thu, 01 Nov 2012 17:23:18 +0100 From: Andre Fischer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: Looking for guide to debug with MS Visual Studio Express References: <50910D1F.90608@t-online.de> <50911C46.4030007@googlemail.com> In-Reply-To: <50911C46.4030007@googlemail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 31.10.2012 13:40, Oliver-Rainer Wittmann wrote: > Hi, > > On 31.10.2012 12:35, Regina Henschel wrote: >> Hi all, >> >> I read that debugging with MS Visual Studio works well. Is there >> somewhere a >> guide for dummies how to do it? >> > > The following steps should give you a start: > - Have your AOO build installed on the system. > - Build the module of interest with debug information > - Copy the resulting DLLs and PDB files of the module into the > corresponding directory of the installation. > -- for "gbuild" modules like sw you find the DLLs and PDB files in > /main/solver/350/wntmsci12/workdir/LinkTarget/Library/ > -- for "dmake" modules like sd you find the DLLs and PDB files in > /main/[module]/wntmsci12/bin/ I do it a little differently from here on because I am a lazy person who wants to press just one key to start debugging: - Start Visual Studio The Express version is just fine. I have been using it for most of my debugging for years. - File->New Project - In the new dialog: - In left list "Installed Templates" choose Visual C++->General - In center list choose "Empty Project" - In field near the bottom "Location" enter a path where the solution files will be stored. - In the field above that, "Name", enter the name of the new project, eg "aoo35" - Click OK to close dialog - Now the main window shows a new view. - In the "Solution Explorer" on the left side you will now see an entry in bold typeface named "aoo35". - I usually delete the entries below it "Header Files", "Resource Files", "Source Files". These are used only when Visual Studio is used for editing. But that is just for my convenience - Right click on the "aoo35" entry. - Click "Properties" - In the "aoo35 Property Pages" dialog: - Select "Configuration Properties->Debugging" in the left box. - In the center box change values for "Command" to "/OpenOffice.org 3/program/soffice.bin" The .bin is important, do not use .exe - Set value for "Environment" to "PATH=/OpenOffice.org 3/URE/bin" - [optional] Set value of "Command Arguments" to to load a file when AOO starts or to eg "-impress" to start AOO with the Impress application. - Click OK to close dialog Now you are all set Just press "F5" to start Apache OpenOffice. We probably should write a Wiki page for this. There is one [1] about "Windows Debugging" but it looks quite scary. Another one [2] is for the advanced Visual Studio user and tells you how to better visualize eg boost containers. Have fun, Andre [1] http://wiki.openoffice.org/wiki/Windows_Debugging [2] http://wiki.openoffice.org/wiki/VisualStudioVisualizer