techl / MonoRemoteDebugger

Other
83 stars 18 forks source link

Console.Writeline causes the exception #56

Closed BorisTakara closed 4 years ago

BorisTakara commented 4 years ago

Installed product versions

Description

Console.Writeline("Hello") causes the exception.

Just a simple Hello World does not work. I could be wrong, but I do believe it worked with 2017 Proffessional.

Steps to recreate

Here is my program:

   static void Main(string[] args)
    {
        int x = 6;
        x = 2 * x;
        Thread.Sleep(2000);
        try
        {
            Console.WriteLine("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        }
        catch(Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
    }

The same program works fine without the debugger

techcap commented 4 years ago

What is your mono and VS version?

BorisTakara commented 4 years ago

VS-2019 Professional

mono -V ===> Mono JIT compiler version 6.6.0.160 (tarball Tue Dec 3 10:51:19 UTC 2019)

laloutrejoyeuse commented 4 years ago

Exactly the same problem for me, same mono JIT version (6.6.0.160). On a raspberry pi debian buster. Then the exception occurs (System.TypeInitializationException, System.ConsoleDriver --> dll not found) when the Console.WriteLine() instruction is executed.

NateKomodo commented 4 years ago

The same happens with DateTime, File, etc... completly unusable rn

techcap commented 4 years ago

Same problem #55