DenoDDeno
Powered by
1771771771
Denoβ€’4y agoβ€’
9 replies
177177177

Deno.inspect, how to log class instances with getters

im trying to log a class instance that has getters in it, with
Deno.inspect
Deno.inspect


Deno.inspect(client, {
  colors: true,
  getters: true
})
Deno.inspect(client, {
  colors: true,
  getters: true
})

and it logs
[Circular *1]
[Circular *1]
, why?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to inspect Deno's rare uncaught rejections?
jeieaJjeiea / help
12mo ago
How to import the Image class to Deno Fresh?
PonchoPPoncho / help
4y ago
deno_tui Label-class
DNADDNA / help
3y ago
How to load DWARF debugging symbols from WASM modules when running `deno --inspect`
cowboydCcowboyd / help
14mo ago