0

I have some angular applications which I did built using angular CLI which has typescript files. I always did debugged them from chrome, but chrome only understands javascript, right? Does anyone know how it manages to debug typescript?

  • the angular cli compiles your app to js files and serves it then... when you see where the console.logs or errors or whatever come from, it's due to generated sourcemap files – Argee Jul 14 '20 at 11:14
  • write the **debugger** in code, where you want to check. – surendra kumar Jul 14 '20 at 11:18
  • Short answer, sourcemaps. https://stackoverflow.com/questions/44315460/when-do-browsers-download-sourcemaps – mbojko Jul 14 '20 at 11:29

1 Answers1

0

If you use Angluar with VS Code then you can use Debugger for Chrome extension to debug typescript in Chrome or any other target that supports the Chrome DevTools Protocol.

Tymur Taraunekh
  • 219
  • 1
  • 4