1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00
Beef/IDE/Tests/Test1/scripts/Breakpoints.txt

62 lines
1.1 KiB
Text
Raw Permalink Normal View History

2024-10-21 18:59:34 -04:00
OutputLine("Step 1")
2019-08-23 11:56:54 -07:00
ShowFile("src/Breakpoints.bf")
GotoText("//BreakpointTester_Test")
ToggleBreakpoint()
2024-10-21 18:59:34 -04:00
OutputLine("Step 2")
2019-08-23 11:56:54 -07:00
GotoText("//BreakpointTester_LoopA")
ToggleBreakpoint()
BreakpointSetHitCountTarget(3, "MultipleOf")
BreakpointSetCondition("++b < 10")
2024-10-21 18:59:34 -04:00
OutputLine("Step 3")
2019-08-23 11:56:54 -07:00
GotoText("//BreakpointTester_Recurse")
ToggleBreakpoint()
2024-10-21 18:59:34 -04:00
OutputLine("Step 4")
2019-08-23 11:56:54 -07:00
GotoText("//Recurse_C")
ToggleBreakpoint()
BreakpointSetCondition("a == 3")
2024-10-21 18:59:34 -04:00
OutputLine("Step 5")
2019-08-23 11:56:54 -07:00
RunWithCompiling()
2024-10-21 18:59:34 -04:00
OutputLine("Step 6")
2019-08-23 11:56:54 -07:00
Continue()
AssertEvalEquals("a", "2")
AssertEvalEquals("b", "3")
2024-10-21 18:59:34 -04:00
OutputLine("Step 7")
2019-08-23 11:56:54 -07:00
Continue()
AssertEvalEquals("a", "5")
AssertEvalEquals("b", "6")
2024-10-21 18:59:34 -04:00
OutputLine("Step 8")
2019-08-23 11:56:54 -07:00
Continue()
Continue()
AssertLineContains("Recurse(0)")
2024-10-21 18:59:34 -04:00
OutputLine("Step 9")
2019-08-23 11:56:54 -07:00
StepInto()
AssertLineContains("int b = 234")
StepOver()
AssertLineContains("int c = 345")
StepOver()
AssertLineContains("a == 10")
AssertEvalEquals("a", "0")
2024-10-21 18:59:34 -04:00
OutputLine("Step 10")
2019-08-23 11:56:54 -07:00
StepOver()
StepOver()
AssertLineContains("int c = 345")
AssertEvalEquals("a", "3")
2024-10-21 18:59:34 -04:00
OutputLine("Step 11")
2019-08-23 11:56:54 -07:00
StepOver()
StepOver()
StepOver()
StepOver()
2024-10-21 18:59:34 -04:00
AssertEvalEquals("d", "103")
OutputLine("Step 12")