Explains troubleshooting methods for each situation, such as when connecting a agent or using an API from an application.