add debug path code

Signed-off-by: Ankorite <ankorite@gmail.com>