Patch console: add debug method
Extend skeleton with mongoose