Debugging is an essential part of software development. It allows us to identify and fix errors, optimizing the performance and stability of our applications. Modyo, aware of this, incorporates tools to facilitate this process.
If you work with Modyo, you're probably familiar with the Modyo CLI. This powerful command-line tool simplifies the deployment of widgets and micro frontends, streamlining your workflows.
However, when things don't go as expected, we need detailed information to understand what's going wrong. This is where debug mode comes in.
Debug Mode in the Modyo CLI
The Modyo CLI offers a debug system that provides detailed information about errors that may arise during deployment. This is crucial for diagnosing and troubleshooting issues efficiently.
Activating debug mode in the Modyo CLI is simple. Just add the prefix DEBUG=*
before the Modyo CLI command you want to run:
DEBUG=* modyo-cli push
That's it! Now, when you run Modyo CLI commands, you'll get detailed debug information in your console.
Note: If you are on Windows, you may need to run the set DEBUG=*
command before using the Modyo CLI.
For more details, please refer to the official Modyo CLI documentation.
Photo by Joan Gamell on Unsplash