docs: document attaching the VS Code debugger to a Vite/Fresh dev server#3317
Merged
Conversation
bartlomieju
marked this pull request as ready for review
June 18, 2026 16:15
Member
Author
|
Verified interactively in VS Code: breakpoints in a Fresh route handler do bind and pause on the request. The one wrinkle is that a breakpoint in a route that hasn't been loaded yet shows as "Unbound breakpoint" / "Some of your breakpoints could not be set" until Vite loads that module on first request, after which it binds and pauses normally. Added a note documenting that, and marked the PR ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feedback (#2724) reported that there are no instructions for debugging a Deno
Fresh project (which runs Vite) in VS Code. The existing "Using the debugger"
section only covers the generated single-file
Denolaunch config, which doesnot fit a project whose
deno task devstarts a long-running Vite server.This adds a subsection covering the attach workflow: run the dev server under
the Deno inspector (
deno run --inspect -A npm:vite, e.g. as adev:debugtask) and attach VS Code to port 9229.
Verification status:
deno task devisvite)and confirmed that running it under
--inspectbrings up both the Vite devserver and a reachable Deno inspector on 9229 (valid target in
/json/list,Debugger listening on ws://127.0.0.1:9229/...).deno fmt,the freshness check, and a local build pass, and the
--inspect-waitanchorresolves.
server-side Fresh route code actually bind and pause through Vite's transform
in VS Code. I could not verify GUI breakpoint binding headlessly. Marking this
PR as draft pending that check. If breakpoints don't bind cleanly, we should
adjust the recipe (e.g. source-map /
outFilessettings) or note thelimitation.
Closes #2724.