Jun. 10, 2017
This page describe how to debug with Eclipse CDT.
Make a working environment at first.
Press Ctrl + Alt + T keys to launch a terminal.
Make a data file.
$ cd <workspace>/Sort
$ random.awk 31 > data
Select menu of the eclipse "Run" --> "Debug Configurations..."
Select "C/C++ Application" and click "Add" icon.
Click "Search Project..." button.
Double click a binary "Sort".
Select "Arguments" tab, set "-h -V 1 data" in Program arguments, and Click "Debug" button.
Set the following checkbox and click "Yes".
Hit F8 key to run.
The result is shown in the Console tab.
Click Debug button to restart.
You can set/clear a BreakPoint by double-clicking a line number.
Hit F8 key to continue.
You can return the perspective to C/C++.