mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Debugging
This commit is contained in:
parent
f06e5efd2f
commit
99aded7951
1 changed files with 15 additions and 1 deletions
|
@ -1,33 +1,43 @@
|
||||||
|
OutputLine("Step 1")
|
||||||
|
|
||||||
ShowFile("src/Breakpoints.bf")
|
ShowFile("src/Breakpoints.bf")
|
||||||
GotoText("//BreakpointTester_Test")
|
GotoText("//BreakpointTester_Test")
|
||||||
ToggleBreakpoint()
|
ToggleBreakpoint()
|
||||||
|
|
||||||
|
OutputLine("Step 2")
|
||||||
GotoText("//BreakpointTester_LoopA")
|
GotoText("//BreakpointTester_LoopA")
|
||||||
ToggleBreakpoint()
|
ToggleBreakpoint()
|
||||||
BreakpointSetHitCountTarget(3, "MultipleOf")
|
BreakpointSetHitCountTarget(3, "MultipleOf")
|
||||||
BreakpointSetCondition("++b < 10")
|
BreakpointSetCondition("++b < 10")
|
||||||
|
|
||||||
|
OutputLine("Step 3")
|
||||||
GotoText("//BreakpointTester_Recurse")
|
GotoText("//BreakpointTester_Recurse")
|
||||||
ToggleBreakpoint()
|
ToggleBreakpoint()
|
||||||
|
|
||||||
|
OutputLine("Step 4")
|
||||||
GotoText("//Recurse_C")
|
GotoText("//Recurse_C")
|
||||||
ToggleBreakpoint()
|
ToggleBreakpoint()
|
||||||
BreakpointSetCondition("a == 3")
|
BreakpointSetCondition("a == 3")
|
||||||
|
|
||||||
|
OutputLine("Step 5")
|
||||||
RunWithCompiling()
|
RunWithCompiling()
|
||||||
|
|
||||||
|
OutputLine("Step 6")
|
||||||
Continue()
|
Continue()
|
||||||
AssertEvalEquals("a", "2")
|
AssertEvalEquals("a", "2")
|
||||||
AssertEvalEquals("b", "3")
|
AssertEvalEquals("b", "3")
|
||||||
|
|
||||||
|
OutputLine("Step 7")
|
||||||
Continue()
|
Continue()
|
||||||
AssertEvalEquals("a", "5")
|
AssertEvalEquals("a", "5")
|
||||||
AssertEvalEquals("b", "6")
|
AssertEvalEquals("b", "6")
|
||||||
|
|
||||||
|
OutputLine("Step 8")
|
||||||
Continue()
|
Continue()
|
||||||
Continue()
|
Continue()
|
||||||
AssertLineContains("Recurse(0)")
|
AssertLineContains("Recurse(0)")
|
||||||
|
|
||||||
|
OutputLine("Step 9")
|
||||||
StepInto()
|
StepInto()
|
||||||
AssertLineContains("int b = 234")
|
AssertLineContains("int b = 234")
|
||||||
StepOver()
|
StepOver()
|
||||||
|
@ -36,13 +46,17 @@ StepOver()
|
||||||
AssertLineContains("a == 10")
|
AssertLineContains("a == 10")
|
||||||
AssertEvalEquals("a", "0")
|
AssertEvalEquals("a", "0")
|
||||||
|
|
||||||
|
OutputLine("Step 10")
|
||||||
StepOver()
|
StepOver()
|
||||||
StepOver()
|
StepOver()
|
||||||
AssertLineContains("int c = 345")
|
AssertLineContains("int c = 345")
|
||||||
AssertEvalEquals("a", "3")
|
AssertEvalEquals("a", "3")
|
||||||
|
|
||||||
|
OutputLine("Step 11")
|
||||||
StepOver()
|
StepOver()
|
||||||
StepOver()
|
StepOver()
|
||||||
StepOver()
|
StepOver()
|
||||||
StepOver()
|
StepOver()
|
||||||
AssertEvalEquals("d", "103")
|
AssertEvalEquals("d", "103")
|
||||||
|
|
||||||
|
OutputLine("Step 12")
|
Loading…
Add table
Add a link
Reference in a new issue