Print the object details to stdout._write (for the interactive console of the web debugger.
(obj: object = missing)
| 41 | |
| 42 | |
| 43 | def dump(obj: object = missing) -> None: |
| 44 | """Print the object details to stdout._write (for the interactive |
| 45 | console of the web debugger. |
| 46 | """ |
| 47 | gen = DebugReprGenerator() |
| 48 | if obj is missing: |
| 49 | rv = gen.dump_locals(sys._getframe(1).f_locals) |
| 50 | else: |
| 51 | rv = gen.dump_object(obj) |
| 52 | sys.stdout._write(rv) # type: ignore |
| 53 | |
| 54 | |
| 55 | class _Helper: |