Skip to main content



      Home
Home » Newcomers » Newcomers » How to specify path to source code for debugger in Eclipse?
How to specify path to source code for debugger in Eclipse? [message #254098] Wed, 16 April 2008 20:56 Go to next message
Eclipse UserFriend
Originally posted by: eric.fowler.gmail.com

I am running Eclipse Europa 3.3.0 on Fedora. I am able (finally) to debug
into Qt library code but my own code is not available - IOW I can see into
the support classes but I am seeing 'no source available for main()'.

How to fix this?

Thanks

Eric
Re: How to specify path to source code for debugger in Eclipse? [message #254104 is a reply to message #254098] Wed, 16 April 2008 20:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.fowler.gmail.com

Eric Fowler wrote:

> I am running Eclipse Europa 3.3.0 on Fedora. I am able (finally) to debug
> into Qt library code but my own code is not available - IOW I can see into
> the support classes but I am seeing 'no source available for main()'.
>
> How to fix this?
>
> Thanks
>
> Eric

Oh and I should say: g++ / Qt 4.3.3 + Eclipse/Qt plugin

Thanks

Eric
Re: How to specify path to source code for debugger in Eclipse? [message #254119 is a reply to message #254104] Thu, 17 April 2008 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Eric Fowler wrote:
> Eric Fowler wrote:
>
>> I am running Eclipse Europa 3.3.0 on Fedora. I am able (finally) to debug
>> into Qt library code but my own code is not available - IOW I can see into
>> the support classes but I am seeing 'no source available for main()'.
>>
>> How to fix this?
>>
>> Thanks
>>
>> Eric
>
> Oh and I should say: g++ / Qt 4.3.3 + Eclipse/Qt plugin
>
> Thanks
>
> Eric

Did you build with debug info (g++ -g)?

--
Anton Leherbauer
Wind River CDT Team, Austria
Re: How to specify path to source code for debugger in Eclipse? [message #254158 is a reply to message #254119] Thu, 17 April 2008 14:12 Go to previous message
Eclipse UserFriend
Originally posted by: eric.fowler.gmail.com

Anton Leherbauer wrote:


>
> Did you build with debug info (g++ -g)?
>

I will have to say 'no' according to the following build spew.

And I have figured out how to build DEBUG in Eclipse, thanks.

But I still don't know how to make DEBUG the default make target ... it
defaults to RELEASE and I have to fish around through the menus to get
DEBUG ... so if you know that I am completely copacetic.

Thanks for the assistance.

Eric
----------------

make
make -f Makefile.Release
make[1]: Entering directory `/home/eric/workspace/QtConsolePlay0'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui -I/usr/local/Trolltech/Qt-4.3.4/include/QtXml -I/usr/local/Trolltech/Qt-4.3.4/include/QtXml -I/usr/local/Trolltech/Qt-4.3.4/include -Irelease -I. -o
release/main.o main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui -I/usr/local/Trolltech/Qt-4.3.4/include/QtXml -I/usr/local/Trolltech/Qt-4.3.4/include/QtXml -I/usr/local/Trolltech/Qt-4.3.4/include -Irelease -I. -o
release/MyClass.o MyClass.cpp
g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.3.4/lib -o QtConsolePlay0
release/main.o
release/MyClass.o -L/usr/local/Trolltech/Qt-4.3.4/lib -lQtXml -L/usr/local/Trolltech/Qt-4.3.4/lib -pthread -pthread -lQtGui -L/usr/X11R6/lib -lpng -lSM -lICE -pthread -pthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
make[1]: Leaving directory `/home/eric/workspace/QtConsolePlay0'
Previous Topic:How to launch another plugin from a plugin
Next Topic:Class not found for ojdbc14.jar
Goto Forum:
  


Current Time: Sun May 11 15:04:16 EDT 2025

Powered by FUDForum. Page generated in 0.07602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top