debug API
The debug
api module allows you to log data to the Extension Devtools
Usage
import { debug } from '@replit/extensions';
Methods
debug.info
Logs information to the Extension Devtools
info(message: string, data: Data): Promise<void>
debug.warn
Logs a warning to the extension devtools
warn(message: string, data: Data): Promise<void>
debug.error
Logs an error message to the extension devtools
error(message: string, data: Data): Promise<void>
debug.log
Logs information to the Extension Devtools
log(message: string, data: Data): Promise<void>