1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00
Beef/IDE/Tests/Test1/scripts/Break.txt
2019-08-23 11:56:54 -07:00

31 lines
No EOL
597 B
Text

# This tests that we can manually break a long-executing method and then step in the
# correct thread
ShowFile("src/Break.bf")
GotoText("//Test_Start")
ToggleBreakpoint()
RunWithCompiling()
ImmediateEvaluate("Infinite()")
nowait Sleep(1000)
nowait Break()
StepOver()
StepOver()
StepOver()
AssertEvalEquals("a", "2")
StopRunning()
# The next section uses assembly and it only works in Og+
if (platform != "Win64") Stop()
RunWithCompiling()
ShowDisassemblyAtStack()
ImmediateEvaluate("Infinite()")
nowait Sleep(1000)
nowait Break()
StepOver()
StepOver()
StepOver()
AssertEvalEquals("a", "2")