I have this C# code in Visual Studio 2013. It uses a third-party library but I don't know if that's a factor in this problem. The code builds and executes perfectly. But there's a variable in it that I can't examine in the debugger. Here's the entire routine . . .
private void AddGeometry()
{
var simplePositions = CreateRectShape(startPosition: new Point3D(0, 0, 0));
var simplePositionCollection = new Point3DCollection(simplePositions);
int size = simplePositionCollection.Count;
MainViewport.BeginInit();
MainViewport.Children.Clear();
var polyLineVisual3D = new Ab3d.Visuals.PolyLineVisual3D()
{
Positions = simplePositionCollection,
LineColor = Colors.DarkOrange,
LineThickness = 2,
Transform = new TranslateTransform3D(0, 0, 0)
};
MainViewport.Children.Add(polyLineVisual3D);
MainViewport.EndInit();
}
If I breakpoint at the Children.Add() statement and try to examine polyLineVisual3D or place a quickwatch on it, I get...
The name 'polyLineVisual3D' does not exist in the current context
... from Visual Studio. I have no trouble examining other local variables like simplePositions or simplePositionCollection at the same breakpoint.