feat: Introduce Debugging and Testing Guide with enhanced startup options

- Added a new document, E5-debugging-guide.md, providing comprehensive strategies for debugging and testing the `yaze` application, including logging practices and testing frameworks.
- Updated E2-development-guide.md to include a new section on debugging and testing, detailing quick debugging methods using command-line flags for specific editors and UI cards.
- Enhanced the main application to support command-line flags for opening specific editors and cards on startup, improving the developer experience.
- Refactored the Controller class to handle startup editor and card initialization based on command-line inputs.
This commit is contained in:
scawful
2025-10-09 17:19:36 -04:00
parent b3c6fd6e12
commit e769cea1d9
32 changed files with 1044 additions and 413 deletions

View File

@@ -36,6 +36,7 @@ class WorkspaceManager {
// Preset management
void SaveWorkspacePreset(const std::string& name);
void LoadWorkspacePreset(const std::string& name);
void RefreshPresets();
void LoadDeveloperLayout();
void LoadDesignerLayout();
void LoadModderLayout();
@@ -53,10 +54,15 @@ class WorkspaceManager {
void set_sessions(std::deque<SessionInfo>* sessions) { sessions_ = sessions; }
const std::vector<std::string>& workspace_presets() const { return workspace_presets_; }
bool workspace_presets_loaded() const { return workspace_presets_loaded_; }
private:
ToastManager* toast_manager_;
std::deque<SessionInfo>* sessions_ = nullptr;
std::string last_workspace_preset_;
std::vector<std::string> workspace_presets_;
bool workspace_presets_loaded_ = false;
};
} // namespace editor