Skip to content

Commit d35d27c

Browse files
authored
Update breakpoints.mdx
Added the additional note in the caution section about remote debugging.
1 parent 422f14d commit d35d27c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/docs/workers/observability/dev-tools/breakpoints.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ To setup VS Code for breakpoint debugging in your Worker project:
5050

5151
Breakpoint debugging in `wrangler dev` using `--remote` could extend Worker CPU time and incur additional costs since you are testing against actual resources that count against usage limits. It is recommended to use `wrangler dev` without the `--remote` option. This ensures you are developing locally.
5252

53+
Additionally note that if you are debugging using `--remote` you cannot use code minification as the debugger will be unable to find vars when stopped at a breakpoint. Do not set minify to `true` in wrangler.toml/.json.
54+
5355
:::
5456

5557
:::note

0 commit comments

Comments
 (0)