Debugging · Cloudflare Workers docs | Latest TMZ Celebrity News & Gossip | Watch TMZ Live Skip to content
Cloudflare Docs

Debugging

The Cloudflare Vite plugin has debugging enabled by default and listens on port 9229. You may choose a custom port or disable debugging by setting the inspectorPort option in the plugin config. There are two recommended methods for debugging your Workers during local development:

DevTools

When running vite dev or vite preview, a /__debug route is added that provides access to Cloudflare's implementation of Chrome's DevTools. Navigating to this route will open a DevTools tab for each of the Workers in your application.

Once the tab(s) are open, you can make a request to your application and start debugging your Worker code.

VS Code

To set up VS Code to support breakpoint debugging in your application, you should create a .vscode/launch.json file that contains the following configuration:

.vscode/launch.json
{
"configurations": [
{
"name": "<NAME_OF_WORKER>",
"type": "node",
"request": "attach",
"websocketAddress": "ws://localhost:9229/<NAME_OF_WORKER>",
"resolveSourceMapLocations": null,
"attachExistingChildren": false,
"autoAttachChildProcesses": false,
"sourceMaps": true
}
],
"compounds": [
{
"name": "Debug Workers",
"configurations": ["<NAME_OF_WORKER>"],
"stopAll": true
}
]
}

Here, <NAME_OF_WORKER> indicates the name of the Worker as specified in your Worker config file. If you have used the inspectorPort option to set a custom port then this should be the value provided in the websocketaddress field.

With this set up, you can run vite dev or vite preview and then select Debug Workers at the top of the Run & Debug panel to start debugging.

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.