Simon
Simon
CC#
Created by Simon on 1/29/2024 in #help
Visual Studio Exception Settings
Visual Studio breaks on handled exceptions. I've looked at more than like 20 stackoverflow questions but none of them really helped.
try {
// Do something that throws an exception.
} catch (Exception ex) { }
try {
// Do something that throws an exception.
} catch (Exception ex) { }
VS will stop on a simple code like that. As for my settings, I have Just My Code option enabled. Some people on SO suggested that we should go to Exception Settings menu and enable Continue when unhandled in user code but this makes no sense, I want it to break on unhandled code but continue as it should on handled code. I'm really not sure why this simple feature is so hard to get it working, so I'd really appreciate any help.
16 replies
CC#
Created by Simon on 8/4/2023 in #help
❔ StringSyntax attribute not available
Yesterday I updated VS to the latest version and installed .NET SDK 7 but whenever I try to use [StringSyntax(StringSyntaxAttribute.Regex)] on a parameter, VS doesn't seem to be able to find it for importing. My project uses .net v4.8.1 framework.
9 replies