This is by design as the devmode is not really a part of the Game UI.
Since you seem to be working in a scenery editing context, you can group the Project Editor and Scenery Editor in the same window and enable the Project Editor before taking your screenshot.
It will hide all the Scenery Editor lines.
This topic has been automatically closed after 60 days of inactivity since it was marked as by-design.
If there is important new information about this same report, you can use the “Request reopen” button below to ask the moderation team to review it again.
For other issues or broader discussion, please open a new topic in the appropriate category.