Skip to content

Debugging

Daniel Lamando edited this page Dec 21, 2021 · 2 revisions

As of writing, there is no native debug-logging functionality built into /x/aws_api.

For debugging in small programs for the purposes of reproducing an issue, consider replacing fetch(), for example:

const realFetch = globalThis.fetch;
globalThis.fetch = async (req, init) => {
  console.log('-->', (req as any).url);
  const resp = await realFetch(req);
  const body = await resp.text();
  console.log('<--', body);
  return new Response(body, resp);
}

Clone this wiki locally