Self debug