getDebugInfo method

Map<String, dynamic> getDebugInfo()

Get debug information about registered routes

Returns a map containing:

  • routeControllers: Map of route names to controller types
  • routeControllerTags: Map of route names to controller tags
  • routeScopes: Map of route names to scope names/IDs

Useful for debugging route configuration issues.

Implementation

Map<String, dynamic> getDebugInfo() {
  return {
    'routeControllers': _routeControllers
        .map((k, v) => MapEntry(k, v.map((t) => t.toString()).toList())),
    'routeControllerTags': Map.from(_routeControllerTags),
    'routeScopes': _routeScopes.map((k, v) => MapEntry(k, v.name ?? v.id)),
    'totalRoutes': _routeControllers.length + _routeControllerTags.length,
  };
}