Home > Mobile >  How to make Visual Studio Code show errors
How to make Visual Studio Code show errors

Time:11-28

For some reason, Visual Studio Code does not show errors, only the compiler and debugger does. There is supposed to be a problems window, but I purposely will put errors there and vs code won't bother to tell me. What the hell is going on?

Any help would be appreciated, thanks.

CodePudding user response:

The following code shows how to display an error message in the event of an error:

public void UDF()
    {
        
        try
        {
            some C# code . . . 
        }
        catch (Exception ex)
        {
             MessageBox.Show(ex.Message);//Show Error
        }
        finally
        {
           Some C# Code . . . 
        }
    }

CodePudding user response:

I think you should download this extension to add support for c# on VSCode.

Also if you want more info regarding this topic I would suggest you to read this.

  • Related