NB! It seems this console command is not compatible with CS2.
Command Profile

MAP_SHOWSPAWNPOINTS

CS:GO

This command will show the map's spawn points. Invalid spawn points will be of the red color (valid are green). Will be hidden after 60 seconds.

Syntax
map_showspawnpoints

Description

This command will show the map's spawn points. Invalid spawn points will be of the red color (valid are green). Will be hidden after 60 seconds.

Syntax And Arguments

map_showspawnpoints