Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Qt Debug error
Qt Debug error [message #201028] Mon, 03 September 2007 07:22 Go to next message
Eclipse UserFriend
Originally posted by: ramazangirgin.gmail.com

Hi all,
I am writing with eclipse in linux( Pardus ). I can compile and run Qt4
applications with eclipse . But when i want to debug my project it gives
error like this:

" Cannot find bounds of current function"

and in console:

" No source file named main.cpp"
Warnings:
"Cannot insert breakpoint 0
Error accessing memory address 0x0: Input/Output error.

How can solve that problem and How can I debug my project???
thanks in advance..
Ramazan
Re: Qt Debug error [message #201039 is a reply to message #201028] Mon, 03 September 2007 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

Sounds like you haven't built your application for debug. You need to use -O0
-g3 to switch on debug from a gcc compiler.

HTH
--
Derek


Ramazan Girgin wrote:
> Hi all,
> I am writing with eclipse in linux( Pardus ). I can compile and run Qt4
> applications with eclipse . But when i want to debug my project it gives
> error like this:
>
> " Cannot find bounds of current function"
>
> and in console:
>
> " No source file named main.cpp"
> Warnings:
> "Cannot insert breakpoint 0
> Error accessing memory address 0x0: Input/Output error.
>
> How can solve that problem and How can I debug my project???
> thanks in advance..
> Ramazan
>
Re: Qt Debug error [message #201225 is a reply to message #201028] Fri, 07 September 2007 21:09 Go to previous message
Nick Schweyer is currently offline Nick SchweyerFriend
Messages: 175
Registered: July 2009
Senior Member
Ramazan Girgin wrote:

> Hi all,
> I am writing with eclipse in linux( Pardus ). I can compile and run Qt4
> applications with eclipse . But when i want to debug my project it gives
> error like this:

> " Cannot find bounds of current function"

> and in console:

> " No source file named main.cpp"
> Warnings:
> "Cannot insert breakpoint 0
> Error accessing memory address 0x0: Input/Output error.

> How can solve that problem and How can I debug my project???
> thanks in advance..
> Ramazan
With Qt you have to use qmake which generates the make file from the
project file.
After generating the project file with qmake, add the following to it:
CONFIG += qt debug

This is a tip I got here in this forum.

Nikosch


Niko

Eclipse-CDT Version: 2019-12 (4.14.0), Win10 64bit
Previous Topic:Project Explorer - Duplicate entries
Next Topic:switch to second desktop for debug in linux
Goto Forum:
  


Current Time: Thu Dec 26 19:59:13 GMT 2024

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

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

Back to the top