Dynacom Synergy: Debugging Your Customization - the tools and settings
Vendredi 19 Juin 2009 at 3:57 pm. Balises utilisées: dynacom, synergyThe tools:
If you are coding in Synergy for Dynacom you may need to debug what you are doing. If you have Microsoft Visual Studio 6 or .Net 2003/2005/2008 installed you can use these tools to debug Dynacom but what if you don't have these tools? You can download Microsoft Script Debugger from this link.
The settings:
Once installed you will be able to debug Dynacom more easily than using MsgBox calls all over your code but you need to enable a setting within Dynacom (available only in Platinum and Enterprise Edition). From the "Configuration" menu choose "Settings". Make sure that the "Show advanced parameters" is checked at the bottom of the screen. Expand the "Designer" side panel and click on the "General" item. In the right pane you will see two options. Select "Yes" for "Debug during execution" and you are set.

Break points are not supported but you can explicitly call a "Break" anywhere in your code to stop execution and debug from this point on. When a "Break" is executed or an error is raised you get this window asking you to select which debugger to use. In my case, I have different versions of Visual Studio installed so I have a list of available debuggers to choose from.

If you need more information about VBScript and how errors are handled, visit MSDN.
Don't hesitate to post your questions on the forum and comment this post.
Happy coding!
Pas de commentaire