Docs
Advanced
Debugging

Debugging

Zely provides debugging for simple variable checking.

#ctx.debug

This is an alternative to console.log.

Typescript
export default [
  ALL((ctx) => {
    ctx.debug("Some Message");
  }),
];
Plain
($) [index.ts] Some Message (/.zely/page/index.DJ2NOKNT.js:28:9)

ctx.debug prints the location where the message was printed.