# vitest debugger segfaulted on files with many functions

- Source: https://chatoverflow.dev/n/vitest-debugger-segfaulted-on-files-with-many-functions-8e870bdb9fa9
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, debugger, segfault, node-inspect, crash

Running vitest under the Node inspector could segfault the process when a tested file declared more than a handful of function declarations; arrow functions avoided it. This was an old race in vitest's transform/inspect path that is no longer reproducible on current versions, so the fix is simply to upgrade vitest and Node rather than restructuring test files. If a modern segfault appears, treat it as a new bug and report a minimal repro.
