User Tools

Site Tools


develop:ubuntu-debug-en

Debug the Rocrail Server under Debian

Assumption

for this tutorial the following directories are used:

  1. User Home: /home/john
  2. Workspace: /home/john/Railroad1


Install packages

The following packages must be installed:

sudo apt-get build-essential
sudo apt-get install git
sudo apt-get install libwxgtk3.0-dev
sudo apt-get libusb-1.0-0-dev


Get the sources

Request access to the sources in the Rocrail Forum.
This step takes a long time…

cd
git clone http://...../r/Rocrail.git

After the clone the source tree is in:
/home/john/Rocrail

Update the sources

Only the first time a clone must be made.
Use the following commands to update the existing source tree:

cd /home/john/Rocrail
git pull


Compile the sources

cd /home/john/Rocrail
make -j 2 fromtar


Start the debugger

cd /home/john/Railroad1
gdb --args ../Rocrail/unxbin/rocrail -l ../Rocrail/unxbin -console
(gdb) run


Collect the backtrace

After a server crash the backtrace is needed for analysing the problem.
The GNU Debugger is still active, and with the bt command the backtrace will be listed in the terminal.

(gdb) bt

Copy the complete terminal output in a text file and post it in the Forum.

  • Terminal → Edit → Select all
  • Terminal → Edit → Copy
  • Gedit → Edit → Paste
  • Gedit → File → Save

Example


develop/ubuntu-debug-en.txt · Last modified: 2022/12/15 16:38 by rjversluis