'When making an API call to a Node.js REST API, how can I view which portion of the code it uses?

I have a REST API that was built with Node.js and Express.js. When making an API call, how can I view which portion of the code it uses? (without me having to infer it myself by reading the code)



Solution 1:[1]

Reddit user BehindTheMath pointed me to the following two options: logging and breakpoints.

Console logging can work, but you'd need to add logging all over the app. Another option is to debug the app, and put breakpoints and see where it stops.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Franck Dernoncourt