On Mon, 3 Aug 2009, Thiago Farina wrote:
> How can I debug git on Windows? I'm able to compile git through the
> make that was installed by msysgit installation.
> But I want to debug, not only build. I think is not possible to
> compile and debug git with Visual Studio, or is it possible?
Did you actually just go and try to debug it?
Ciao,
Dscho
msvc is not supported
> I thought that if you guys are building the msysGit, you must are
> debugging it somehow that I don't know.
yes, with gdb :-)
...or they could just download the msysgit environment, which already
includes gdb.
> I was more accustomed to just press F5 (debug) and then F11 in Visual
> Studio.
unfortunately, that's the cost of using mingw.
--
Erik "kusma" Faye-Lund
kusm...@gmail.com
(+47) 986 59 656
On Tue, 4 Aug 2009, Erik Faye-Lund wrote:
> On Tue, Aug 4, 2009 at 5:58 AM, Thiago Farina<thiago...@gmail.com> wrote:
> > For those who are interested in debugging git on windows:
> > I downloaded the dgb from here:http://sourceforge.net/projects/mingw/
> > files/GNU%20Source-Level%20Debugger/
>
> ...or they could just download the msysgit environment, which already
> includes gdb.
Maybe the word "complete" is missing from "msysGit is the build
environment for Git for Windows".
> > I was more accustomed to just press F5 (debug) and then F11 in Visual
> > Studio.
>
> unfortunately, that's the cost of using mingw.
There's ddd, I hear. I'm not opposed to bundling it if somebody does the
work of verifying that it works nicely, and of making a proper patch. Not
opposed at all.
Ciao,
Dscho
Of course, I'm opposed to that idea. :-)
Bundle KDbg!! Oh, wait... KDbg does not exist for Windows :(
-- Hannes
Eclipse runs on Windows. It runs fine with the msys/mingw build
environment. Maybe there's a way you could use that one for git as well.
It has a nice gui for debugging. And once you get used to it, it is
close in user experience terms of Visual Studio...
Once you get it running, please tell us how :)
Do you know how can I set the include paths?
For example how eclipse will know that the "fnmatch.h" in under
compat/fnmatch directory?
In Visual Studio I know how to do this but, but in eclipse no.
I'm not opposed to that, either, if you get it to run and provide me with
a patch I can lazily apply while continuing to nurse my White Russian.
Ciao,
Dscho
Now that's funny! Love this group.
Phil Lawrence
> Do you know how can I set the include paths?
> For example how eclipse will know that the "fnmatch.h" in under
> compat/fnmatch directory?
> In Visual Studio I know how to do this but, but in eclipse no.
>
In eclipse do:
- Rightclick project
- Properties
- C/C++ Build
- Settings
- GCC C++ Compiler
- Directories
Here you can add include directories to your eclipse config.
> Do you know how can I set the include paths?
> For example how eclipse will know that the "fnmatch.h" in under
> compat/fnmatch directory?
> In Visual Studio I know how to do this but, but in eclipse no.
>
Sorry, I meant GCC C Compiler in stead of GCC C++ Compiler :)