Following steps:
-
Set a breakpoint where you want to inspect, which must be inside a
builderfunction which hascontext, and run in Debug mode

-
Run your app to the break point
-
Open “Evaluate expression”

-
Evaluate
Navigator.of(context)

-
Inspect the
_history
In my example, you can see there are 2 routes in the history, with all relevant debuggable data.
Hope it helps