By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,113 Members | 1,409 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,113 IT Pros & Developers. It's quick & easy.

good debuger for c++ on linux

P: n/a
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
Aug 6 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
John wrote:
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
Aug 6 '05 #2

P: n/a
John wrote:
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.

Aug 6 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.