how to view console.log when running via `wrangler dev --remote`

Hi. I'm using react-router v7 and tinkering with browser bindings. I'm at a loss at how to observe server-side console.log when running wranger dev in --remote mode. I only see a bunch of [wrangler:inf] GET ... logs on the terminal. Help please!
2 Replies
olafg
olafg2w ago
Console logs should appear, but if you added it in your code without rebuilding the path in wrangler config the code hasn't been updated
dtnc
dtncOP2w ago
what path are you referring to? I'm currently not getting log in production either (via cf dashboard). The content of my wrangler.jsonc is this
"$schema": "node_modules/wrangler/config-schema.json",
"name": "myproject",
"compatibility_date": "2025-04-09",
"main": "./workers/app.ts",
"vars": {
"VALUE_FROM_CLOUDFLARE": "Hello from Cloudflare"
},
"observability": {
"enabled": true
},
"compatibility_flags": ["nodejs_compat"],
"browser": {
"binding": "MYBROWSER"
}
"$schema": "node_modules/wrangler/config-schema.json",
"name": "myproject",
"compatibility_date": "2025-04-09",
"main": "./workers/app.ts",
"vars": {
"VALUE_FROM_CLOUDFLARE": "Hello from Cloudflare"
},
"observability": {
"enabled": true
},
"compatibility_flags": ["nodejs_compat"],
"browser": {
"binding": "MYBROWSER"
}
I'm trying to debug issues with the browser binding

Did you find this page helpful?