Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC++ debugger

Status
Not open for further replies.

globos

Programmer
Joined
Nov 8, 2000
Messages
260
Location
FR
Hi,

Is it possible to use the VC++ debugger as a command line tool? I don't want to use the GUI front-end from VC++, and I can't find the base exe.

--
Globos
 
How do you expect to navigate in your debugged project without a GUI?


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Like the GDB(gnu debugger) way, it is pure text tool, no GUI.
But i'm afraid there VC debugger can only be used in its GUI form.
By the way, does someone know if it's possible to debug exes(compiled with VC++ tools) with GDB under Cygwin?


--
Globos
 
Globos, could you explain the advantage of doing that assuming you could?

-pete
 
The first reason is i don't like the Visual C++ 6.0 GUI. And in general I prefer command line tools.
Moreover, the software I'm working on should be able to move easily to other OSs than Windows. Since the software will be tested and debugged on other platforms, I prefer to rely on GNU tools(emacs, g++, gdb, bash), which offer a common way to do that regardless the target OS.
The libs we use are only VC++ compliant on Windows, so I'm obliged to use VC++ compiler and not g++.
What I am looking for is to use VC++ as command line tools. nmake and cl.exe are ok, and I'm able to generate Makefiles in an automated way for multiple OSs(thanks to qmake, a Qt tool). But the debugger is a problem, that's why I was aksing if there is a way to debug VC++ exe with gdb.

Hope this is clear.

--
Globos
 
why don't you use BorlandC++ free command line tools? you could download them for free from borland.com, but VisualStudio is the best IDE i have seen. A better IDE you will not find.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
>> The first reason is i don't like the Visual C++ 6.0 GUI.

no comment

>> By the way, does someone know if it's possible to debug
>> exes(compiled with VC++ tools) with GDB under Cygwin?

Did you try it? What happened?


-pete
 
Maybe you are talking about Visual Studio .NET? I don't know it, maybe it's the best IDE, i don't know. I think Visual Studio is the best IDE to develop Windows software, with MFC, ActiveX, COM, etc., all windows technologies are maybe well managed in Visual Studio. But I don't work with windows oriented technologies, so VC++ is not so good to me.
I have stop to use C++ Borland Builder in its 4th release, now it must be a very mature tool, as good as Visual C++ maybe.

I've already tried Borland C++ tools, and can compile with it perfectly ok, but the debugger(TurboDebugger if my memory is ok) does not work, it is not able to find the symbol table of the input exes. Although I used the bcc32 compiler with the right option for adding debugging info, the debugger was able to load the symbol table.

This is my previous post concerning that problem :
thread101-568206

--
Globos
 
Answer to palbano's last question :
I tried it, but as you might expect, the symbol tables are not compatibles : GDB seems unable the recognize the VC++ generated debugging information.
I did not find a tool that can translate the debugging info from VC++ to GDB.

--
Globos
 
Visual Studio .NET is the best relative to other versions of VisualStudio. VisualStudio 6 is also a very good compiller. By the way, I can not understand, how will you compille linux programs with VisualStudio? There VisualStudio command line nor Borland command line tools will not help you at all.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
>> The libs we use are only VC++ compliant on Windows, so
>> I'm obliged to use VC++ compiler and not g++.

Can you get the source for those libs? then they could be integrated into a g++ project and solves your problem.

-pete
 
The lib I use(Open Cascade 5.0) is horrible to make it compiled.
To be compiled on different OS, Open Cascade is provided with the source code and specific files(scripts, makefiles, etc.)
For Windows, it comes with VC++ workspace files, but compilation failed on some C++ files.
I tried to compile the linux source code under Cygwin and its adapted GNU tools, and compilation failed too.
Open Cascade is made of nearly 12.000 classes, and it is uncompilable decently, so I'm obliged to use the provided pre-compiled libraries.

--
Globos
 
anthing you compille with VisualC++ IDE or command line tools you can debug very well in VisualC++ IDE. If you could compile/link it, means you can debug.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top