[Solved] โ How to debug deno's Fresh framework with Vscodium?
The create app cli doens't create the required launch and task files
8 Replies
i'm trying to setup fresh debugging on deno inside vscodium
as per the documentation, i am executing as run -A --inspect-brk=<localhost>:9229 npm:vite
i did a lot of attempts to attach chrome and node and stuff but
i do get some debugging but, something is off. The only breakpoints i can set are at Main.ts (the first line) notronly the breakpoints is actually set within the compiled version of js which could'nt be further than the desired
i feel like i'm missing some kind of core documentation about the fresh's integration with vscode,
- i already have the denoland extension
- create a default project with create app command at the frameworks documenatation first page
- the project runs perfectly
- no combination of node attach, chrome attach, lauch deno attach node then open chrome etc nothing worked out the expected
- have found not content about it despite thoroughly investigation with google, docs, github, youtube, even AI
i looked up the deno docs and it said that within launch.json i would have an option with the "add configuration tab" to add a deno configuration. But i doens't seems to be the case
vscodium ver -- 1.92.8
I have the same question. I can't seem to find proper documentation to cover this simple use-case. How to debug a Deno Fresh 2 app in VS Code (or Codium). Hours have been wasted trying to get this to work. Breakpoints are ignored even though I've followed and tried every single recommendation I could find (searching and using AI tools to assist with the search).
What I did learn was that there are a lot of confused people out there and lots of "change this in your launch.json or add this or try this". How can it be that difficult! Proper documentation is indeed needed. If I can't even debug the sample project, I won't invest more time in using Deno, even though I want to.
@Syngenor, maybe the exit would be to create an issue at fresh's repo
I mean, people here aren't maintainers, they're user in majority so its counter-intuitive to get staff support here
GitHub
How to properly setup vscode's debugging environment ยท Issue #3629...
Debug doesn't work as expected, breakpoints not hit Although following the documentation precisely at https://fresh.deno.dev/docs/latest/advanced/troubleshooting, and running as deno run -A --i...
here we go.
For anyone having trouble attaching a debugger or with incorrect source maps, please give the latest release a try. It addresses several source mapping issues. https://github.com/denoland/fresh/releases/tag/2.2.0
GitHub
Release 2.2.0 ยท denoland/fresh
Features
feat: Add .json()/.text()/.html()/.stream() context helpers by @marvinhagemeister in #3613
@fresh/plugin-vite
fix(vite): source mapping locations by @marvinhagemeister in #3624
@fresh/...
@Syngenor, A lot of fixes are being added to the codebase. Its an evolving and growing project that will eventually have its market share, but currently we must be understanding that open source project like that possibly have boostraped a bunch of functionality and then are fixing and improving things on the go
Ty @marvinh. for the support and wonderful work regarding deno and its ecosystem
I'll mark this as solved.
I can confirm now that all my break points are being set and breaked upon
