Debug Configuration for a local Connection

  1. In the C++ Perspective: create a new Debug-Configuration (Run>Debug Configurations... C/C++ Remote Application>New)
  2. Browse to select your project.
  3. On the Main-Tab: Enter the path to the binary to be debugged, e.g. workspace/<DU>/build/bin/i686/<DU>_S
  4. On the Main-Tab: Build Configuration: Deselect 'Select configuration using 'C/C++ Application'' and enable 'Use Active'.
  5. On the Main-Tab: Select Disable auto build to avoid repeated new building of the sources.
  6. On the Main-Tab: Connection: select local connection for connecting to local processes.
  7. Important: On the Main-Tab: Select other... leads to a dialog to change the preferred launcher. Check Use configuration specific settings and Standard Remote Create Process Launcher.
  8. On the Debugger-Tab: For GDB command file select .gdbinit for pretty-printing STL-variable content in Eclipses Debug-view.

Start Debugging on Localhost

  1. From an opened Deploy-Unit-Document open a new Terminal in Eclipse (Window>View>Other>General>Terminal). The opened location will be the users home folder.
  2. cd to te location of the Deploy-Unit's instance file (e.g. workspace/<DU>/src/test/<FEC-name>)
  3. In the Terminal-Window enter (replace the FESA version and the CPU as necessary):
    gdbserver <FECName>:10000 ../../../build/bin/<CPU>/<DU-binary>
    -cfgcmw /common/export/fesa/global/etc/fesa/1.2.2/cmw-rda.cfg
    -cfglog /common/export/fesa/global/etc/fesa/1.2.2/cmw-log.cfg
    -cfgfesa /common/export/fesa/global/etc/fesa/1.2.2/fesa.aslCluster.cfg
    -cfgmsg /common/export/fesa/global/etc/fesa/1.2.2/messages.cfg \
    -cfgmsglab /common/export/fesa/global/etc/fesa/1.2.2/messagesGSI.cfg \
    -instance /common/fesadata/data/<FECName>/development/fesa-data/DeviceData_<DU-binary>.instance
    The output should be similar to
    Process ../../../build/bin/i686/DU_S created; pid = 45897
    Listening on port 10000
Topic revision: r1 - 04 Mar 2014, SolveighMatthies
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback