Skip to content

Commit a4d4310

Browse files
committed
fixed EvilBeaver#1627 Не срабатывают точки останова на коротких скриптах
1 parent b943fc3 commit a4d4310

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/OneScript.DebugServices/Internal/ConnectableSessionProxy.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This Source Code Form is subject to the terms of the
55
at http://mozilla.org/MPL/2.0/.
66
----------------------------------------------------------*/
77

8+
using System.Diagnostics;
89
using System.Threading;
910
using ScriptEngine.Machine;
1011
using ScriptEngine.Machine.Debugger;
@@ -53,6 +54,11 @@ public void WaitReadyToRun()
5354
}
5455

5556
_connectionEvent.Wait();
57+
Debug.Assert(_isConnected, "Must be connected");
58+
Debug.Assert(_session is DebugSession, "Session must be DebugSession");
59+
60+
// Делегируем ожидание реальной сессии
61+
_session.WaitReadyToRun();
5662
}
5763

5864
public bool IsActive => _session.IsActive;

0 commit comments

Comments
 (0)