debug exposes a function; simply pass this function the name of your module, and it will return a decorated version of console.error for you to pass debug statements ...
The documentation covers configuration (auto / manual entities), panels & special entities (alarm, timer, weather, map, video, …), custom cards, themes, icons ...