Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/src/Debug.ts>debug

Headless Chrome Deno API
Latest
variable debug
import { debug } from "https://deno.land/x/pptr@1.2.0/src/Debug.ts";

A debug function that can be used in any environment.

Examples

Example 1

const log = debug('Page');

log('new page created')
// logs "Page: new page created"

type

(prefix: string) => ((...args: unknown[]) => void)