add debug support

Signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com>