You are here:
Foswiki
>
FESA Web
>
Fesa3next
>
FESA3RemoteDebug
(24 Jan 2018,
SolveighMatthies
)
Edit
Attach
Principal Debug Configuration for a SSH Connection
It is possible to debug a running binary on a
FEC
via SSH using Eclipse. This needs at least the following settings:
In the C++ Perspective: create a new Debug-Configuration (Run>Debug Configurations... C/C++ Remote Application>New)
Browse to select your project.
On the Main-Tab: Enter the path to the binary to be debugged, e.g. workspace/<DU>/build/bin/i686/<DU>_S
On the Main-Tab: Build Configuration: Deselect 'Select configuration using 'C/C++ Application'' and enable 'Use Active'.
On the Main-Tab: Select Disable auto build to avoid repeated new building of the sources.
On the Debugger-Tab: Connection: create a new TCP connection for the host and specify the port 46697.
On the Debugger-Tab: Main: For GDB command file select <
PATHTODO
.gdbinit
> for pretty-printing STL-variable content in Eclipses Debug-view.
On the Debugger-Tab: Shered Libraries: Add the appropriate directories, e.g. /common/usr/fesa/saftlib-xx.yy.zzzz
Start Debugging on a
FEC
Log on to the
FEC
as root
Launch the FESA3 binary using the start script with the option -r, e.g.
./opt/fesa/local/scripts/start_<DUName>_S.sh -r
Launch the debug configuration for the binary in Eclipse if it is possible to connect to the
FEC
Attachments
1
Attachments
1
I
Attachment
Action
Size
Date
Who
Comment
gdbinit
.gdbinit
manage
230 bytes
24 Jan 2018 - 14:42
SolveighMatthies
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r12
<
r11
<
r10
<
r9
|
B
acklinks
|
V
iew wiki text
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r12 - 24 Jan 2018,
SolveighMatthies
FESA
Log In
Toolbox
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Accnomen
Applications
FAIR
FESA
Frontend
Hardware
IC
IN
Machines
Main
Sandbox
Service
System
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback