How to debug typescript code, which is bundled using webpack in vscode/vs2015

Viewed 2040

Here is my workflow.

I have moduled typescript code. Imports like the following: import { Logger } from './../data/logger';

Then I bundle it using webpack (precisely - webpack-stream) with ts-loader. I run webpack using gulp.

So I have the following workflow: gulp --> webpack (ts-loader) --> bundled *.js with source-maps. I also use the browsersync to run simple server and auto update the page.

I can debug this code from the browser, but I can't from vscode (using Chrome Debugging for VS Code, or even from vs2015.

What could cause the problem ?

1 Answers
Related