Skip to content

Commit

Permalink
Added VS Code launch configuration for TS file debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
janik6n committed Jan 7, 2025
1 parent e715728 commit 868bde8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "Debug Current File",
"request": "launch",
"runtimeExecutable": "tsx",
"program": "${file}",
"skipFiles": [
"<node_internals>/**"
],
"sourceMaps": true,
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
]
},
{
"type": "node",
"request": "launch",
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ All notable changes to this template will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.4.0] - 2025-01-07

### Added

- New VS Code launch configuration `Debug Current File`. See README for more details.

### Changed

- Updated README.

### Deprecated

### Fixed

### Removed

### Security

### Internal

## [1.3.0] - 2025-01-07

### Added
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ Run `npm run build:container` to build the app as Docker container. Multi-stage

Run the containerized app with `npm run start:container`.

## 🔬 Available VS Code configurations

There are two debugger launch configurations included:
- `Debug Current File` is meant to debug the currently active TypeScript file.
- `Debug Current Test File` is same, but for test files.

## 🐛 Known issues

None as of now. 🦗
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typescript-starter",
"description": "TypeScript Starter",
"version": "1.3.0",
"version": "1.4.0",
"homepage": "https://github.com/janik6n/typescript-starter#readme",
"repository": {
"type": "git",
Expand Down

0 comments on commit 868bde8

Please sign in to comment.