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}",