# Debugging Designer with Microsoft Visual Studio

You can use Microsoft Vision Studio 2010 or higher to debug your Designer project.

1. Add break points in a script, using the $System.Debug.Break() function.

2. Attach Microsoft Visual Studio 2010 or higher to Designer, while Designer is running.

3. When a break point is encountered, Visual Studio will return code that is a converted form of Designer code that you typed in the Designer Script Editor. This is because $ tags and functions are converted into GetTag<T>(tagName).Value and CSharpInvoker.InvokeFunction<T>(functionName, params[]), respectively.

   Note: Visual Studio will generate script; however, any changes made from within Visual Studio will not be reflected in the Designer Script Editor.

4. Visual Studio also has a Watch window, which can be used to view and edit Designer tag values.

5. Once the return value has been reached, press the F5 key to return to the Designer application.