Setting break point on code in header file [message #109121] |
Mon, 05 July 2004 22:50 |
Eclipse User |
|
|
|
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 #109313 is a reply to message #109223] |
Tue, 06 July 2004 18:18 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 2.43968 seconds