Motivation / Problem
This is a partial implementation of the suggested improvements for visibility of information useful for debugging such as road/tram/rail flags as described in #8545.
This adds a console command which dumps information on a named feature.
Example console output:
So far this only includes road/tram types, rail types and cargo types.
More features types and/or fields could be added later as required.
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.
Tested, this is great.
What industry information would you want to be shown?
The info of an individual industry or industry tile is probably more interesting than static information about industries in general.
(I don't have a console command to show industry information in my branch, but I do have various things added to the debug window for industries and industry tiles).
That sounds to me like the sort of thing which should go in the doc/ folder, (or on the wiki).
I agree, changed my mind.
There are rare cases where industries aren't appearing on the map for whatever reason and it might be useful to be able to dump information about the type. But it's so rare, and so unlikely to actually help diagnose the issue, versus reading the grf code.