From a157eb5f30027cb422026161691884da868133ed Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 24 Sep 2021 00:59:11 -0300 Subject: [PATCH] Switches focus to the IDE when an error is trapped. --- internal/support/vwatch/vwatch.bm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/support/vwatch/vwatch.bm b/internal/support/vwatch/vwatch.bm index 3bfb642fc..94003ebc8 100644 --- a/internal/support/vwatch/vwatch.bm +++ b/internal/support/vwatch/vwatch.bm @@ -130,6 +130,9 @@ SUB vwatch (globalVariables AS _OFFSET, localVariables AS _OFFSET) GOSUB SendCallStack vw_cmd$ = "error:" + MKL$(vw_lastLine) GOSUB SendCommand + $IF WIN THEN + vw_i = vwSetForegroundWindow&(vw_ideHwnd) + $END IF EXIT SUB ELSEIF vwatch_linenumber = -2 THEN 'report a new sub/function has been "entered"