good debuger for c++ on linux

J

John

Hi,

I have some problems with ddd debugger. In my C++ program the debugger
cannot display the information on type string. For example

string s = "Hello";

somewehere in the debugger you cannot see the the variable s. DDD gives
a message cannot access memory ....... In VC++ from microsoft is
possible, so why not in ddd.

Does anyone know a good debugger for c++ programs on linux platforms.

John
 
J

John Ratliff

John said:
Hi,

I have some problems with ddd debugger. In my C++ program the debugger
cannot display the information on type string. For example

string s = "Hello";

somewehere in the debugger you cannot see the the variable s. DDD gives
a message cannot access memory ....... In VC++ from microsoft is
possible, so why not in ddd.

Does anyone know a good debugger for c++ programs on linux platforms.

John

This is a better question for a Unix specific newsgroup like
comp.unix.programmer. Maybe there is even a comp.linux.programmer, not
sure though. comp.lang.c++ is for Standard C++ language questions only.

I like gnu gdb. But I don't know if it will do what you want. Though it
should.

--John Ratliff
 
G

Giancarlo Niccolai

John said:
Hi,

I have some problems with ddd debugger. In my C++ program the debugger
cannot display the information on type string. For example

string s = "Hello";

somewehere in the debugger you cannot see the the variable s. DDD gives
a message cannot access memory ....... In VC++ from microsoft is
possible, so why not in ddd.

DDD (and gdb, for which DDD is just a front end) correctly reads the fields
inside any class, including std::string. The message you are reading is
very probably due to missing debug informations in your application (or
part of it). Make sure your project is compiled with the "-g" switch, if
using gcc. Also, make sure you have the latests versions of gcc and gdb, as
there had been points in which the compatibility of the two tools were
broken.


Bests,
Giancarlo Niccolai.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top