mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
31 lines
No EOL
597 B
Text
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") |