1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 08:00:37 +00:00

Switches focus to the IDE when an error is trapped.

This commit is contained in:
FellippeHeitor 2021-09-24 00:59:11 -03:00
parent 1d638a8399
commit a157eb5f30

View file

@ -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"