Skip to content

[X# 3] The debugger hits the same line twice #1959

@hpetriffer

Description

@hpetriffer

in the following example the debugger hits the same line twice

public class TestClass
	public method TestMethod(x) as int clipper
		if x
			return 10
		else
			return 20
		endif
end class

function Start() as void strict
	var test1 := TestClass{}
	local val := 3 as usual
	var x := test1.TestMethod(0)

	Console.WriteLine("Result: " + x.ToString())
	Console.ReadLine()
	return

If you have a breakpoint in TestClass.TestMethod in the line with the if statement, the debugger breaks twice. With the first step x is nil, in the second step x gets the correct value. This happens only if the method is clipper

XSharpTests.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions