Debug Log Window
The Debug Log Window displays real-time diagnostic messages throughout the app.Opening the Debug Log
Log Entry Format
Each log entry shows:- Timestamp: When the event occurred
- Category: Type of operation (Auth, Graph, Cache, Export, etc.)
- Level: Info, Warning, or Error
- Message: Description of the event
Logging Categories
Auth
Authentication and connection events:- Tenant connection attempts
- Authentication method used (Interactive, Client Secret, Device Code)
- Token acquisition
- Connection success/failure
- Profile switching
Authenticating to tenant {tenantId} ({cloud}) as {clientId}Graph client created successfullyConnected to {profileName}Authentication failed: {error}
Graph
Graph API operations:- Data fetching (List operations)
- Graph API errors (throttling, 403, 404, etc.)
- Refresh operations
- Lazy-load triggers
Loaded 127 application(s)Loading conditional access policy(ies)...Failed to load device configurations: Forbidden (403)Refreshing data from Graph API...
Cache
Cache operations:- Cache hits/misses
- Data loaded from cache
- Data saved to cache
- Cache invalidation
- Cache age
Loaded 47 device configuration(s) from cacheSaved 127 application(s) to cacheAll data loaded from cache — skipping Graph refreshPartial cache hit (4/28) — refreshing from GraphFailed to load {dataType} from cache: {error}
Export
Export operations:- Export started/completed
- Export progress
- Export file paths
- Export errors
Exporting CA policies to: C:\Users\...\ConditionalAccessPolicies-20240325-143022.pptxCA PowerPoint export completedCA PowerPoint export cancelled by userFailed to export: {error}
Import
Import operations:- Import started/completed
- Import progress (items imported)
- Migration table updates
- Import errors
Importing from: C:\Users\...\Desktop\IntuneExportImported 47 device configuration(s)Failed to import {objectType}: {error}
App
General app lifecycle events:- Startup
- Navigation changes
- Window events
- Profile loading
Intune Commander starting...Profiles loaded: 3Connected nav categories (42): Overview, Device Configurations, ...Nav categories rebuilt (42)
Permissions
Graph API permission checks:- Permission validation results
- Missing permissions
- Permission claims source (token vs consent)
Check complete (claim: token) — 18/20 granted; missing: Policy.Read.All, User.Read.AllPermission check skipped: {reason}
Missing permissions don’t block the app from starting—features that require those permissions will return 403 errors when accessed.
Error
General errors not tied to a specific category:- Unhandled exceptions
- Unexpected failures
- Critical errors
Connection to {profileName} failed: {error}Unhandled exception: {exceptionType}: {message}
Log Levels
Info (Default)
Standard operational messages:- Successful operations
- Status updates
- Connection events
Warning
Non-critical issues:- Deprecated features used
- Fallback logic triggered
- Recoverable errors
Error
Critical failures:- Authentication failures
- Graph API errors
- Export/import failures
- Unhandled exceptions
Using the Debug Log
Troubleshooting Connection Issues
Common Auth Errors:
AADSTS50020: User account not found in directoryAADSTS65001: Admin consent not grantedAADSTS700016: Application not found in directoryForbidden (403): Missing Graph API permissions
Diagnosing Graph API Errors
Common Graph Errors:
403 Forbidden: Missing permission (e.g.,DeviceManagementConfiguration.ReadWrite.All)404 Not Found: Object doesn’t exist or wrong endpoint429 Too Many Requests: Graph API throttling (retry after a delay)503 Service Unavailable: Microsoft Graph temporary outage
Verifying Cache Behavior
Cache Hit Example:
Log Capacity
The debug log is an in-memory buffer with a 2000-entry limit.- Oldest entries are dropped when the buffer fills
- Logs are not persisted to disk
- Logs are cleared when the app closes
Clearing the Log
To clear all log entries:- Open the Debug Log window
- Click the Clear button
Clearing the log does not affect app behavior—it only removes UI entries.
Advanced Debugging
Raw JSON Inspection
To view the raw Graph API response for an object:
Use this to:
- Verify property values
- Check for missing or unexpected fields
- Compare against Graph API documentation
- Troubleshoot export/import issues
Comparing Graph Calls
To understand what the app is sending to Graph API:- Use a tool like Fiddler or Wireshark to capture HTTP traffic
- Filter for requests to
graph.microsoft.comorgraph.microsoft.us - Inspect request headers, query parameters, and response bodies
Performance Logging
The debug log includes timing information for key operations:- Connection time: From “Authenticating…” to “Connected to…”
- Data load time: From “Loading…” to “Loaded X items”
- Export time: From “Exporting…” to “Exported X items”