firefox-devtools / firefox-devtools/vscode-firefox-debug

Extension Does Not Work Properly With Vite

Offen
#362 2 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug sourcemaps
Vorherrschende Sprache
TypeScript
Sterne
447
Forks
76
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I am currently using `react-scripts start` to run my React app. I am able to set and hit breakpoints and everything works as expected. We are switching to using Vite and after updating our build process to use Vite breakpoint debugging has become unusable. Because my code is proprietary, there is no way I can post it as an example, and while I do have a smaller example that exhibits odd debugger issues, I can't get an exact repro for every case.

The issue we are seeing is that after moving to Vite, line numbers that are reported in VS Code when hitting an exception are just plain wrong. Like wildly wrong. In other cases we will set a breakpoint in a file and the debugger will stop on a completely unrelated line. In other cases the debugger will simply stop at phantom breakpoints.

Before I go through the arduous process of creating an example repo in github or something to try to create a project that reproduces these issues, can someone confirm whether this is a known issue and has a work-around? Or if anyone else is experiencing this?

To confirm. switching back to `react-scripts` everything works as expected, but using Vite, breakpoints don't work consistently.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es wird keine Repository-Datei und kein Test genannt. Beginne mit dem kleineren im Issue erwähnten Vite-Beispiel und vergleiche das Verhalten von Breakpoints mit react-scripts in VS Code; für weitere Fortschritte wäre ein reproduzierbarer Fall erforderlich, der falsche Zeilen, nicht zusammenhängende Stopps oder Phantom-Breakpoints dokumentiert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript, vite, vscode
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.