Debugging

How to debug your application

Your application is running, but something goes wrong? In this guide, you'll learn how to debug your application and solve your problem to make it running smoothly.

Your application is running, but for some reason, it is not working as expected. Here are a few tips to find out what's going on.

Check the status of your app

To find out what is the status of your application, you can follow these steps:

  1. Navigate to Console

  2. Choose your project and environment

  3. In environment overview, you can see the status of the whole environment as well as statuses of individual applications:

    Debugging

    • As you can see in the screenshot, the environment is RUNNING.

    • twitter-backend and my-db application statuses are marked as green dots, which means they are up and running as well.

    • On the other hand, the my-mysql database is marked with a grey dot, which means it was not deployed or is stopped.

    • If the service crashes, its status is marked with a red dot.

Logs

If you need to see the log output of your application while it's running, follow these steps:

  1. Navigate to Console.

  2. Choose your project, environment, and application.

  3. In the application overview, click the Show Logs button

    Debugging

    This will open a view of your application logs:

    Debugging

    You can use this information to find out what causes your application to behave incorrectly.

Deployment Logs

If your application fails to start, you can check what's the cause in its deployment logs:

  1. Navigate to Console.

  2. Choose your project and environment.

  3. In environment overview, click Show Logs button:

    Debugging

    This will open a view of your deployment logs:

    Debugging

    This view provides insight into the build and deployment process. If anything goes wrong, you can see all the required information to fix the problem here.

Monitoring

If you need more information about the resources consumed by your application, Qovery provides basic metrics about your CPU, memory and storage usage.

  1. Navigate to Console.

  2. Choose your project, environment, and application.

  3. In the main application view, you can see charts and an overview of your application resource consumption.

    Debugging

Alerting

We highly recommend using tools like Datadog, Sentry or NewRelic to manage your alerting. Qovery will provide easy integrations in the coming release. Check out our roadmap

Do you need any help? Reach us on Discord