I have a problem in JetBrains Rider with .Net Console Application. It just goes out of Debugging mode. I'm using macOS Catalina 10.15.4.
public static void Main(string[] args)
{
var num1 = new Number(20, string.Empty);
var number = num1.Amount;
// (...)
}
I've set a Breakpoint on the first curly bracket (in Main class) and run the Debugger. Using 'Step Over' it goes normally to the var num1 = new Number(20, string.Empty);
line, and then, in the var number = num1.Amount;
it just stops. I've checked the console and it says:
=================================================================
External Debugger Dump:
=================================================================
(lldb) command source -s 0 '/tmp/mono-gdb-commands.25146'
Executing commands in '/tmp/mono-gdb-commands.25146'.
(lldb) process attach --pid 25146
error: attach failed: Error 1
I don't know what to do with that. Debugger works totally normal when is attached to external process, like when I'm working with Unity.
Not sure if it's needed, but here's my Number class:
public class Number
{
public float Amount
{
get => amount;
set => amount = value;
}
public string Unit
{
get => unit;
set => unit = value;
}
private float amount;
private string unit;
public Number(float amount, string unit)
{
this.amount = amount;
this.unit = unit;
}
public override string ToString()
{
return string.Format("{0} {1}", amount, unit);
}
}