PDA

View Full Version : Debugging in Eclipse



ntp
5th July 2007, 21:22
I'm trying to build/debug using the eclipse ide. I followed the directions found at:

http://www.joerg-reiling.de/qt4.0-eclipse3.1.0/

and it builds without a problem. However, everytime I try to launch it in the debugger, I get a Launching dialog with "Error creation session Exec error:Launching failed."

It runs fine in release mode. Is there a step that I am missing?

Thanks,
Nisha

jpn
7th July 2007, 17:31
Have you noticed Qt Eclipse Integration (http://trolltech.com/company/newsroom/announcements/press.2007-05-24.8884335791)?

ntp
9th July 2007, 18:49
Thanks, I hadn't seen that. I had only seen the java plugin.

I tried to download it and keep getting a problem with the page (for windows where I am currently working).

-- Nisha

ntp
14th August 2007, 22:51
I found out that I need to compile the Qt sources with mingw (for windows) and remove all traces of Visual Studio paths from my INCLUDE and LIB environment variables to get the sources to compile. Because of other issues, I was unable to follow through with this but hopefully this should solve the problem for anyone else.

brokensword
2nd October 2007, 12:37
Is there any way of how to view Qt types (e.g. - QString) in user-friendly view (e.g. - ASCII representation) in Eclipse (like in VS) while debugging?

I've found just one way so far - opening QString variable in "Variables" window, then go to d->data. Copy pointer. Go to "Memory window". "Add memory monitor". Paste pointer. Then "Add ASCII rendering". Presto! We have unreadable ASCII representation of QString.

It takes too much time. Is there any other ways?

marcel
2nd October 2007, 12:54
Add a watch for (QString)variable.

brokensword
3rd October 2007, 08:18
it doesn't solves the problem I've described.

tsemer
6th November 2007, 15:16
Hello to all !!
On a windows machine i have installed qt4 mingw eclipse CDT and qt-eclipse integration 1.0.0.
I have build the debug libraries (after three days of searching way mingw32-make don't work :p)
(http://www.qtcentre.org/forum/f-installation-5/t-mingw32-make-multiple-target-patterns-error-10023.html)

and now i cannot debug my codes.
qt-eclipse integration is supposed to have the compiler/debugger options because during installation the wizard asked me for the path of the mingw installation.
Ok, to make it short... any suggestions how to use eclise to debug?

thanks a lot

tsemer

brokensword
25th November 2007, 11:57
So is there something like "Debugger Extension" (like in VS integration) for Eclipse to parse Qt classes? If no - is there any usability of eclipse integration app yet?