-2

I want to debug my Angular Typescript code, but when I open sources in my chrome console I only see these files:

the files

They all weird code in them that I don't recognise.According to this question's first answer, I should see the .ts files in my webpack folder. But there is no webpack folder. Where is my code? ^^

The website is deployed on cloud foundry.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Boommeister
  • 1,591
  • 2
  • 15
  • 54
  • If it's a deployed production build then there's not much you can do, you're not supposed to debug it in the first place –  Dec 15 '20 at 15:45
  • Ah ok, good that I didn't know, thanks for the hint ; ) – Boommeister Dec 15 '20 at 16:30
  • If you're on your local, if you disable bundling and turn off prod mode, then it will be in the expected folder structure. – Rich Dec 15 '20 at 17:12

1 Answers1

0

All of your TypeScript code should be in the main-[EcmaScript version].[some numbers & letters].js file. Your code will be minified and consolidated, so it will be very difficult to debug as it is. There is an option in Chrome to 'pretty print' a file, which will do a good job making the code more readable.

blazebot7000
  • 109
  • 9