Friday, July 25th 2008, 3:00am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

patterj

Beginner

Posts: 4

Location: Herkimer, ny

Occupation: manage a website

1

Friday, May 2nd 2008, 5:29pm

Debugging - Eclipse?

I am experiencing some difficulty trying to go into debug mode in eclipse. Unfortunately I'm quite new to QT & eclipse, so I am not sure what i'm looking for.

When I click run, it runs the application. When I click debug it errors out with "Launching failed".

I would like to step through my code and start to utilize eclipse a bit more (right now it's nothing more than a text editor).

I used the trolltech installer to install mingw. I think it may have installed mingw, but not the mingw debugger. Would you know of a way to test, if the debugger is installed? (name of file, or command line test?)

It may also be that I haven't configured the debugging settings properly for my project, could you give me some tips on doing this as well?

Thank you,

Jeremy
Jeremy Patterson
patterj420@yahoo.com
  • Go to the top of the page

2

Tuesday, May 6th 2008, 10:07pm

RE: Debugging - Eclipse?

Your debugging has to be defined in either your make file or your eclipse environment. I don't know about mingw, but gdb is a great debugger. You just have to tell eclipse to use it. Futz around with the preferences and the project settings.
  • Go to the top of the page

lishi

Beginner

3

Tuesday, May 6th 2008, 11:40pm

The MinGW comming with qt dont have gdb installed.

Actually neither the one wich come from ufficial MinGW installer.

you can get one here

http://sourceforge.net/project/showfiles.php?group_id=2435
  • Go to the top of the page

patterj

Beginner

Posts: 4

Location: Herkimer, ny

Occupation: manage a website

4

Wednesday, May 7th 2008, 4:58pm

No Debugger installed

Thanks for the tip. The debugger was not installed as you stated.

Good way to check is to look for gdb in windows:

c:\Directory_MinGW_Located\bin\gdb.exe

I downloaded it here: http://ftp.gnu.org/gnu/gdb/

but I'm sure lishi's link will work.

I'm now able to step through code. I am having trouble viewing qstrings, but I believe it has something to do with setting up a .gdbinit file. I'll post a solution if I am able to figure it out.

Jeremy
Jeremy Patterson
patterj420@yahoo.com
  • Go to the top of the page

Rate this thread