Answer the question
In order to leave comments, you need to log in
How to get stack trace for TypeScript code map?
Wrote a simple logger for debugging (in production and dev environment). But it turned out to be inconvenient when, when called from .ts files, the
debugger shows that it was called from a class file, which is not correct.
Although I wrote in the component file (app.component.ts):
ngOnInit() {
log.debug("Init component");
}
Answer the question
In order to leave comments, you need to log in
The result is a hack, but there are alternatives that are almost the same
https://www.npmjs.com/package/ts-debugger
Tested on webpack2 + typescript2 + angular2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question