Skip to content

Instantly share code, notes, and snippets.

Setting up VS Code Debugger for Exercism TypeScript

These instructions outline how to configure the VS Code debugger to work with your TypeScript Exercism exercises using ts-node.


1. Configure .yarnrc.yml for node-modules:

Ensure your .yarnrc.yml file in the root of your project has the following setting. If the file doesn't exist, create it.

// tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Cmake init",
"type": "shell",
"command": "cmake -G 'Unix Makefiles' .",
"options": {
"cwd": "${workspaceFolder}"
// launch.json
// install CodeLLDB vscode extention by Vadim Chugunov
{
"version": "2.0.0",
"configurations": [
{
"name": "C/C++: g++ build and debug active file",
"type": "lldb",
"request": "launch",
"program":"${workspaceRoot}/${fileDirnameBasename}",
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch TypeSscript",
@blumus
blumus / tsconfig.generic.config
Last active May 13, 2025 17:41
run npm install -D typescript
{
"compilerOptions": {
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"module": "commonjs", /* Specify what module code is generated. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
"strict": true, /* Enable all strict type-checking options. */
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
"outDir": "./build", /* Specify an output folder for all emitted files. */
"sourceMap": true, /* Create source map files for emitted JavaScri