Skip to content

--== THE PROBLEM OF FRESH 2 DEBUG [2026] ==-- #3670

@chriswang-

Description

@chriswang-

I want to open a new issue to share my experience more clearly.

To be honest, I really like Deno and Fresh, and I want to upgrade to Fresh 2. However, I have spent a significant amount of time trying to migrate from Fresh 1.x to Fresh 2, and during this process I discovered a serious blocking problem: there is currently no reliable way to debug server-side application code in Fresh 2.

This is not a minor DX inconvenience. For any non-trivial or business-critical website, the inability to properly debug server-side logic is a major problem. Having to rely only on console.log for debugging complex application logic is not realistic and quickly becomes a disaster as the codebase grows.

What makes this more frustrating is that this issue has existed for a long time. I have tried different configurations, inspector flags, source map options, and workflows, and I have also followed related issues and discussions over the past years, but there still does not seem to be a workable, officially supported debugging solution for Fresh 2 (especially with Vite).

I am raising this issue because I genuinely care about the future of Fresh. Solving the debugging problem would be a significant improvement and would make Fresh much more viable for larger and more complex applications.

I also want to be honest about my confusion regarding the move to Vite. In Fresh 1.x, hot reload already worked well, and server-side debugging in VS Code was straightforward. From my perspective as an application developer, I do not see a clear benefit that offsets the loss of effective debugging. If Vite is a necessary architectural direction, then I believe Fresh should provide either:

a reliable, first-class debugging experience, or

a clearly documented and supported alternative debugging workflow.

My hope is that the Fresh team can either address this debugging limitation directly, or at least provide a practical and supported workaround. I believe this would be very beneficial for Fresh’s long-term adoption and growth.

For reference, this debugging problem has been discussed before and appears to be recurring rather than isolated:

#2075
#3515

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions