This repo just exists for the purpose of helping reproduce a problem seen with VS Code and ts-node
- Clone this repo
- If you are using
volta
, runnpm install
. If you are using some other way to bootstrap yournode
andnpm
versions, installnode
20.18.0 andnpm
10.8.2. (It might work with other versions. This is just what I tested.) Then runnpm install
. - In VS Code, run the one configuration available,
Run Test
. You should seeHello World 1
andHello World 2
printed to the console. - In VS Code, set a breakpoint on the
Hello World 2
line and start theRun Test
configuration in the VS Code debugger. Sometimes it will work, and sometimes it will fail with error code 139. The failure only happens when breakpoints are set.
I just got a new dev machine, and I never saw any problems with it on my old machine. My new dev machine has a "Intel(R) Core(TM) i7-14700 2.10 GHz" CPU which has far more cores than my previous machine. I haven't noticed any other problems in any other software, so it's not obviously a hardware flaw specific to this machine.
I ran these tests in 2 different versions of Ubuntu in WSL2 (on Windows 11) with the same results:
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
and
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy