Beef icon indicating copy to clipboard operation
Beef copied to clipboard

IDE shows wrong line while debugging

Open gopakumar-gg opened this issue 2 months ago • 0 comments

In the following code, debugging with 'Step Into' from Outer constructor finally reaches line 2 (namespace BeefTest;) instead of line 8 (int* ptr = &x;). Anyway, functionality is working fine. The issue is only with the IDE (Nightly 2025-10-09).

using System;

namespace BeefTest;

struct Inner
{
	public int x = ?;
	int* ptr = &x;

	public this()
	{
		x = 0;
	}

	public this(ref Self inn)
	{
		x = inn.x;
	}
}

struct Outer
{
	public Inner _inn;

	public this(ref Inner arg)
	{
		_inn.this(ref arg);
	}
}

class Program
{
	public static void Main()
	{
		Inner inn = .();
		Outer outer = .(ref inn);
	}
}
Image Image

gopakumar-gg avatar Oct 22 '25 01:10 gopakumar-gg