Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Setting break point on code in header file
Setting break point on code in header file [message #109121] Mon, 05 July 2004 22:50 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Much of my source code is in C++ header files.
I can step into this code but there are no line numbers
and I appear to be unable to set a break point on
any line in a ".h" file.

Can someone point me the right way?

Jim
Re: Setting break point on code in header file [message #109223 is a reply to message #109121] Tue, 06 July 2004 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Is the header file a part of your project?

<user@domain.invalid> wrote in message
news:40E9DB53.1010301@domain.invalid...
> Much of my source code is in C++ header files.
> I can step into this code but there are no line numbers
> and I appear to be unable to set a break point on
> any line in a ".h" file.
>
> Can someone point me the right way?
>
> Jim
>
Re: Setting break point on code in header file [message #109313 is a reply to message #109223] Tue, 06 July 2004 18:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

I think you identified the problem.
The header files are part of the project only in the sense
that I have an include directory is the C++ properties.
I see I could import them into the project but I think that
makes a copy - not good because these headers are in all my projects.

How do I tell the project that these headers are part of the project?

Thanks for the quick answer to the original query.

Jim

Mikhail Khodjaiants wrote:
> Is the header file a part of your project?
>
> <user@domain.invalid> wrote in message
> news:40E9DB53.1010301@domain.invalid...
>
>>Much of my source code is in C++ header files.
>>I can step into this code but there are no line numbers
>>and I appear to be unable to set a break point on
>>any line in a ".h" file.
>>
>>Can someone point me the right way?
>>
>>Jim
>>
>
>
>
Re: Setting break point on code in header file [message #109461 is a reply to message #109313] Tue, 06 July 2004 21:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

The problem is that CDT doesn't support breakpoints in the files that are
not in the workspace. I hope this problem will be solved for the next
release.
You can create a special project for your headers and reference it from
other projects.

<user@domain.invalid> wrote in message
news:40EAECD9.1010703@domain.invalid...
> I think you identified the problem.
> The header files are part of the project only in the sense
> that I have an include directory is the C++ properties.
> I see I could import them into the project but I think that
> makes a copy - not good because these headers are in all my projects.
>
> How do I tell the project that these headers are part of the project?
>
> Thanks for the quick answer to the original query.
>
> Jim
>
> Mikhail Khodjaiants wrote:
> > Is the header file a part of your project?
> >
> > <user@domain.invalid> wrote in message
> > news:40E9DB53.1010301@domain.invalid...
> >
> >>Much of my source code is in C++ header files.
> >>I can step into this code but there are no line numbers
> >>and I appear to be unable to set a break point on
> >>any line in a ".h" file.
> >>
> >>Can someone point me the right way?
> >>
> >>Jim
> >>
> >
> >
> >
>
Re: Setting break point on code in header file [message #110239 is a reply to message #109313] Sun, 11 July 2004 05:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

I just wanted to let everyone know that I built a dummy project
containing only my header files. I have turned off automatic
build so this project never gets built.

In my real project, I reference the dummy project.
Now the header files get line numbers like my C++ source
and I can set breakpoints on it.

I think it's quite a nice solution.

Thanks to Mikhail Khodjaiants for suggesting this solution
and to all the others who have helped me get up and running.

Jim Brown
Jim.brown@smartarrays.com

user@domain.invalid wrote:
> I think you identified the problem.
> The header files are part of the project only in the sense
> that I have an include directory is the C++ properties.
> I see I could import them into the project but I think that
> makes a copy - not good because these headers are in all my projects.
>
> How do I tell the project that these headers are part of the project?
>
> Thanks for the quick answer to the original query.
>
> Jim
>
> Mikhail Khodjaiants wrote:
>
>> Is the header file a part of your project?
>>
>> <user@domain.invalid> wrote in message
>> news:40E9DB53.1010301@domain.invalid...
>>
>>> Much of my source code is in C++ header files.
>>> I can step into this code but there are no line numbers
>>> and I appear to be unable to set a break point on
>>> any line in a ".h" file.
>>>
>>> Can someone point me the right way?
>>>
>>> Jim
>>>
>>
>>
>>
>
Re: Setting break point on code in header file [message #116444 is a reply to message #109461] Fri, 20 August 2004 13:25 Go to previous message
Eclipse UserFriend
Originally posted by: lsiefert.senate.michigan.gov

Wow. Cool. Thanks. Never thought of that.

This is just the piece I need to make CDT usable as is for real work and
not just playing/testing. Shows the value of reading through the old
posts in a newsgroup.

Now if I could only get mingw to compile my CodeBase library files...
(Not a CDT or Eclipse problem, building from supplied build files with
my edits for mingw, but keep getting memory error at runtime.)

- Leo

Mikhail Khodjaiants wrote:
> The problem is that CDT doesn't support breakpoints in the files that are
> not in the workspace. I hope this problem will be solved for the next
> release.
> You can create a special project for your headers and reference it from
> other projects.
Previous Topic:Missing Builder
Next Topic:Code assist and C++ Template classes
Goto Forum:
  


Current Time: Thu Jul 18 11:20:53 GMT 2024

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

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

Back to the top