LeftRight92
LeftRight92

Reputation: 266

No output produced for C# Console Application on 'Start without Debugging'

When attempting to run a C# console application without the debugger (ie Ctrl+F5) no output appears in the terminal. When run with the debugger (ie just F5), program executes as expected.

I made a quick test project to make sure it wasn't just my project:

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Test");
            Console.ReadKey();
        }
    }
}

Run with the debugger, "Test" is output to console, without it, nothing. I don't know what I've changed, because (my original) programme was running fine without the debugger before now

Upvotes: 3

Views: 1579

Answers (1)

LeftRight92
LeftRight92

Reputation: 266

Problem was found to be Avast preventing the executable from running properly. Temporarily disabling the File System Shield acts as a workaround.

Visual Studio 14.0.23107.0 D14REL

Avast 10.4.2233 (virus definition version: 151130-0)

Upvotes: 5

Related Questions