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] Meeessage (D:\zelx\playground\typescript\.zely\page\index.DJ2NOKNT.js:28:9)
ctx.debug
prints the location where the message was printed.