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.

How To Use map_showspawnpoints

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter map_showspawnpoints, replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

map_showspawnpoints