refactor(debug): use printf style debug system