WIP: generalize DEBUG_VS for GS