Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[debugger] When debugger encounters a unhandled exception, it doesn't stop #17601

@thaystg

Description

@thaystg
using System;
using System.Linq;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Threading.Tasks;
using System.Threading;
namespace TestResolveCSharpConsole
{
   class MainClass
   {
       public static void Main(string[] args)
       {
           try
           {
               Thread thread = new Thread(SecondFoo);
               thread.Start();
               thread.Join()
           }
           catch (Exception sockEx)
           {
               Console.WriteLine(correctly handled);
           }
       }
       public static void SecondFoo()
       {
           throw new Exception(Error);
       }
   }
}

Current Behavior using Hybrid Suspension:
Don't stop at uncaught exception: throw new Exception(“Error”);

Expected Behavior:
Stop at uncaught exception: throw new Exception(“Error”);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions