beesoft.org

Beesoft Tracer

Autor: Piotr Pszczolkowski (piotr@beesoft.org.)
Status: Stable release.
Version: 0.04
Licencw: GNU GPL.
Donation: donation info

Download: Beesoft Tracer download page.

Registered on: freshmeat.net


Beesoft Tracer is a suite of tools for a remote real time debugging of running program.
All elements are wrote in pure C++ with using STL library.
The communication between elements is via sockets: so called unix domain socket and TCP/IP.


Elements of Beesoft Tracer system.


In whole process are participate three applications.
  1. the debugged program, which sends informations about own states to the server,
  2. the trace server, named 'tracesrv', is a program collecting all information coming from the debugged program.
    The information can be send to one client program, if this is connected.
  3. the trace client, named 'tracecli', receives information from the trace server, and displays them in text mode.
    GUI client is available ('trview').

Advantages of system:


tracer window

How can you use it?


To debugging the remote program it is needed:
  1. download source code of Beesoft Tracer to disk,
  2. build a library 'libbstrace' and the programs 'tracesrv' and 'tracecli' (use 'make' ),
  3. add a appropriate macros into the source code of the program which should be debugged
    (macros are defined in the header file 'Tracer.h') and in compile time link static library 'libbstrace.a'.
After that you are ready for debugging! ;-)

To run the debugging enviroment:


  1. start (followed programs must be run on the same machine):
    a) first 'tracesrv',
    b) next debugged program ( for tests in packet is accesible program 'example'),
  2. on remote (or on the same) machine start client 'tracecli'.

In the package file you can find the source code of the 'example' program.
There you can see the right using of necessary macros!

Sorce code of debugged program preparing:


You should write in your own source code:

And what, when we don't debug and all macros are already inside a source code?


When macros are already in source code and you don't debug,
you should comment a line with #define BEESOFT_TRACER in file Tracer.h .
Or you can write after that a new line: #undef BEESOFT_TRACER.

Contact: piotr@beesoft.org
(C) 2006 beesoft.org
Last modification date: 2000-04-13
Visitis counter:
counter of visits