Skip to content

4 Debugging & Diagnostics

DefinetlyNotAI edited this page Sep 22, 2024 · 3 revisions

Methods

1. Live Feedback

During the execution of a program, live feedback provides immediate insights into the application's behaviour. This feature is crucial for identifying issues early in the development process. It might include outputting logs to the console or real-time analysis of performance metrics.

2. Debug Mode

Debug mode enhances the live feedback mechanism by providing more detailed information during runtime. This involves inspecting variable values at specific points. Debug mode offers extra insight to the main program to aid developers in understanding how their code is executing. To activate, set debug to true in the config.json file

3. Debugger

The debugger component is a powerful tool for analysing the state of a program at various points in time. It checks for file integrity, updates, and file structure, ensuring that the codebase is consistent and up-to-date. Additionally, it can analyse the operating system and other external factors that might affect the application's behaviour. Debuggers are essential for diagnosing subtle bugs that are difficult to reproduce consistently. Run with --debug flag

Clone this wiki locally