Viz Arc User Guide

Version 1.8 | Published October 13, 2023 ©

Script Debugging

To get useful information on the Viz Arc scripting console when errors occur, it's necessary to install a debugger on the target system.

How to Enable Viz Arc Script Debugger on Windows 7/8/8.1/10

Issue Details

I would like to debug my script (main or template script) in Viz Arc, but I don’t get the line of the occurrence on the console output when the script runs into errors. What can I do?

Solution

Viz Arc

The registration process of the pdm.dll differs depending on the version of the OS. To register the .dll, run cmd in admin (elevated) mode and type the command below that corresponds to your software configuration:

  • Windows 7/8/8.1: Regsvr32.exe "C:\Program Files\Internet Explorer\pdm.dll"

  • Windows 10 (up to version 1511): Regsvr32.exe "C:\Windows\System32\F12\pdm.dll"

With Windows 10 version 1607 and above, pdm.dll can no longer be registered manually, but must be automatically registered by a Microsoft product. If attempting to register manually, RegSvr32.exe throws error 0x80070715.

images/download/attachments/81476988/regsvr32.png
One way to automatically register the .dll is to install Microsoft's Remote Tools for Visual Studio. Download the x64 version. This free tool will install and register the PDM. After installation, Viz Arc will automatically recognize the registered .dll.

Additional Information

Viz Arc Script is based on ClearScript which relies on the Microsoft Script Debugger that was released in 1997. This tool could be used to debug Visual Basic scripts (VBScript) or Java scripts (JScript) and was a complement to products such as Internet Explorer 4.0 and Internet Information Server 4.0. Until recently, it was a tool that Microsoft provided as a separate download on their homepage. It installed a shared library called the Process Debug Manager (PDM), which Viz Arc/ClearScript uses to debug its own VBScripts/JavaScript.

With Windows 7/8/8.1/10, users do not need to install this file separately, provided they have either MS Office or Visual Studio installed. It also installs with Internet Explorer 8 and above but is not registered (see the steps for registering the pdm.dll above). As the PDM library is already available on these systems, you only need to make sure the active .dll is registered in order for Viz Arc to recognize it.