KSP: added debug code

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>