[sgen] Improve STW debugging output