-
Notifications
You must be signed in to change notification settings - Fork 0
Debug Mode
ARK4 Helper includes a debug mode that provides additional information and tools for troubleshooting. This page explains how to use debug mode effectively.
To enable debug mode in ARK4 Helper:
- Launch ARK4 Helper
- Check the "Debug Mode" checkbox in the bottom-right corner of the application
- The debug CFW combo box will appear next to the checkbox
When debug mode is enabled:
- More detailed information is logged
- Simulated CFW detection can be used for testing
- Additional diagnostic information is displayed
The debug CFW combo box allows you to simulate different CFW detection scenarios:
- PRO: Simulates a PSP with PRO CFW installed
- LME: Simulates a PSP with LME CFW installed
- ME: Simulates a PSP with ME CFW installed
- ARK-4: Simulates a PSP with ARK-4 already installed
- Unknown: Simulates a PSP with no CFW detected
This feature is useful for:
- Testing how the application responds to different CFW scenarios
- Developing and testing new features
- Reproducing issues reported by users
The debug log contains detailed information about the application's operations. To access the debug log:
- Click the "Debug Log" button in ARK4 Helper
- The log file will open in Notepad
The debug log includes:
- System information
- PSP detection attempts
- Drive scanning results
- Download progress
- Extraction details
- File copy operations
- Error messages and stack traces
The debug log is stored at:
%TEMP%\ARK4_Assistant_Debug.log
You can access this location by:
- Press
Win+Rto open the Run dialog - Type
%TEMP%and press Enter - Look for the file named
ARK4_Assistant_Debug.log
Debug mode is particularly useful for troubleshooting these issues:
- Enable debug mode to see detailed information about drive scanning
- The log will show which drives were checked and why they were accepted or rejected
- Debug logs provide detailed error messages during download, extraction, and file copy
- Stack traces help identify the exact point of failure
- Use the debug CFW selector to test different scenarios
- The log will show the detection logic and decision process
When reporting issues on GitHub:
- Enable debug mode
- Reproduce the issue
- Save the debug log
- Attach the log file to your issue report
This provides valuable information that helps developers diagnose and fix the problem more quickly.
ARK4 Helper supports several command line arguments for debugging:
-
/debug- Starts the application in debug mode -
/log=<path>- Specifies a custom log file path -
/simulate=<cfw>- Simulates a specific CFW detection
Example:
ARK4_Helper.exe /debug /simulate=PRO
For developers contributing to ARK4 Helper, the application exposes several debug APIs:
-
Add-LogEntry- Adds an entry to the debug log -
Update-ChecklistItem- Updates the status of a checklist item -
Get-PSPCFWInfo- Gets information about detected CFW
These APIs can be used in PowerShell scripts to extend the functionality of ARK4 Helper.