5,452 questions
It's a setting in Visual Studio, see Manage exceptions with the debugger in Visual Studio:
- The debugger is configured to break execution before any handler is invoked.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am in the process of moving from VS 2008 to VS 2022 (Community) which is quite a big jump.
I have the following code:
void tlvContactPanel_SelectedItemChanged(object sender, JTreeNode selectedNode)
{
try
{
int recNum = Convert.ToInt16(selectedNode.Tag);
SetCurrentRecordNumber(recNum);
if(tabControlMain.SelectedTab == tabPageAddEditRecord)
editPanel.CurrentRecordNumber = recNum;
}
catch { }
}
VS 2022 is throwing an exception if "selectedNode" is null but that's what the Try/Catch block is for, why is it throwing an exception?
It's a setting in Visual Studio, see Manage exceptions with the debugger in Visual Studio: