Skip to content

Debugging uncompiled Typescript code running on Docker container using VS Code

Notifications You must be signed in to change notification settings

MitsuhideOhi/vscode-ts-node-debug-remotely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debugging uncompiled Typescript code running on Docker container using VS Code

Example project for debugging uncompiled Typescript code running on Docker container (docker-compose) using VS Code.
The sample application is using Express to provide a single page.

Requirements

  • Node.js (v10.14.2+)
  • Docker (18.09.2+)
  • docker-compose (1.23.2+)

Usage

  1. Clone this repository on your local machine
    git clone https://github.com/MitsuhideOhi/vscode-ts-node-debug-remotely.git

  2. Run the Docker container
    docker-compose up --build

  3. Open debug window on VSCode
    image

  4. Attach debugger by clicking run button

  5. Open /src/app.ts and put a breakpoint
    image

  6. Open page on http://localhost:3000/
    image

  7. Confirm the process stops at breakpoint
    image

Explanation about the settings

You can refer to my Blog post here .

About

Debugging uncompiled Typescript code running on Docker container using VS Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published