Debugging LinuxRT with Eclipse

In Eclipse "CVS Repository Exploring" Check out as.., C++, uncheck default location and select directory, makefile project Empty Project, all toolchanins but Autotools (AVOID Autotools)

Set up debug configuration

Build project (command line or in Eclipse. If command line, select project top in Eclipse and hit F5 to update)

Back on the command line:

ssh laci@ioc-b34-bd32 (Or whatever the host name)

source /afs/slac/g/lcls/epics/setup/go_epics_3-14-12-4_1-0.bash

cd $IOC/ioc-b34-bd32 (Or whatever the host name)

./startupConsole-EV07gdbserver.cmd

Key line: /usr/bin/gdbserver :10000 ./bin/evrLab iocStartup.cmd

rather than the normal  ./bin/evrLab iocStartup.cmd

The IOC should stop with a message similar to

"Process bin/beamLoss created; pid = 3969
Listening on port 10000"

Back to Eclipse, select the dropdown next to the bug icon. Select the debug configuration you had previously set up. Eclipse should offer to switch to the Debug View, which is what you want.

Back on the command line where you started the IOC, you'll see a message similar to "Remote debugging from host 134.79.216.240"