ARTICLE AD BOX
How to debug Expo Router API ?
I cannot find documentation anywhere in the internet on how to debug Expo Router API https://docs.expo.dev/router/web/api-routes/#what-are-api-routes
To be clear, I am not asking how to debug expo app client, but the Expo Router API.
The goal is to add breakpoints in the VSCode or Chrome inspect.
export async function GET(request: Request) { try { return Response.json({ data: "ok" }); // how to add breakpoint here } catch (err) { console.error('[API Error]', err); return Response.json({ error: String(err) }, { status: 500 }); } }But when I use the React Native Dev Tools, the api folder is not listed under the source panel.
I also tried
node --inspect node_modules/.bin/expo start
But the breakpoint does not work.
