refactor(debug.go) use openDebug to enable debugging rather than enable in init()