debug in chrome and step into original code and not compiled one

92 views Asked by At

Suppose that I work in a project with react.js as a dependency.

Now I add breakpoint in my own code and the breakpoint is triggered in chrome.

Is there any way to step through original lines of code of react library instead of compiled file?

Thanks!

1

There are 1 answers

6
sammakko35 On

I cannot leave a comment because I don't have enough reputation, but what you are looking for is Source Maps.

Here is a Medium article that could be beneficial: https://javascript.plainenglish.io/debug-your-react-app-like-a-ninja-with-source-maps-c63010b3a6e7