[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Breakpoints on files which are out of workspace
|
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0021_01C326E0.E11E8770
> Content-Type: text/plain;
> charset="koi8-r"
> Content-Transfer-Encoding: quoted-printable
>
> Hi all!!!
>
> I have a project in workspace which use some function which is =
> defined and described in file which lays out of Eclipse workspace. In =
> this case when I do "step in" in that "external" function new editor =
> window opens with the code of this function(that's all right) but I =
> can't set line breakpoint there! There's no left vertical ruler in the =
> editor view! So I have to switch to disassembly mode and continue debug =
> in this mode all the time when I situated in that function.
>
> Maybe this is a feature not a problem but this situation looks strange =
> so I decided to write.
>
The problem is that the File is external to the workspace i.e not
an IResource/IFile, so we can not set a breakpoint marker:
IFile.createMarker(..);
- You can import the file into the workspace somehow and set the SourceLocator
for the debugger to be able to find it.
- swith to the gdb console and do "b external_file.c:2"
We are looking at other ways to provide this, but none of them are
very satisfactory.