[core] better debugging mode