Interactive debugging with Visual Studio
This topic describes the debugging process if you have selected “Visual Studio” “”as your script editor, and you leave the “Visual Studio Modeless” option selected in the “” “Design Time” tab. This is the default.
To interactively debug a script using Visual Studio:
- Open a form and enter Design Mode.
- “” “” “” “” .
- In the “Editing Script in Visual Studio ” “dialog box”, select the “Compile for Debug” check box.
- Click “”.
- In the script code, set a break point on the desired line.
- Under the Visual Studio Debug menu in the debugging session, click Attach to Process.
- Select an instance of the WinStudio.exe process whose Type is Managed (version), x86 and whose Title is Editing Script in Visual Studio.
- Click Attach.
- Minimize the Visual Studio debugging session.
- Perform an action in the form that calls the script. When the script is called and the breakpoint is encountered, focus changes to the Visual Studio debugging session attached to WinStudio. From this point, you can debug the script as you would debug any VB.NET code.
- When you are done debugging, on the Debug menu in the Visual Studio debugging session, click Stop Debugging.
- Close Visual Studio.
- Save the form definition.
相关主题