Clearscript: stack trace on deployment machine missing

Created on 3 Oct 2019  路  2Comments  路  Source: microsoft/ClearScript

Hi,
we use ClearScript in our wpf application (as Javascript and VBScript flavour).
On instantiation we use the WindowsScriptEngineFlags.EnableDebugging flag and the stack trace is perfectly fine when running on a development machine where VS.NET is installed. So from the
ScriptEngineException instance we use ErrorDetails to get the line number and colum of where a problem occured.
When we install our application on a "naked" win7 or win10 box, we get the exception but no stack trace. We are pretty sure it is because there is no debugger installed on the target machine (?). We tried to install Visual Studio Code but no luck. So the question is, what is the minimal requirement to make the stack trace work on any target machine?

Any hint appreciated!

question

All 2 comments

Hi @flat-eric147,

Windows Script debugging features require the Process Debug Manager component (PDM.DLL). Unfortunately the number of products that include this component has been shrinking lately. As far as we know, it's now installed only with Office, Visual Studio, and Remote Tools for Visual Studio.

Good luck!

Hi!
Your hint was brilliant :) I actually copied the pdm.dll off the internet explorer folder and regsrv32'd it, and there was my stack trace (on a win7 box)! The following page helped me as well (while feeding google), I guess they have similar issues:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8gpSAC

Thank you for your quick reply!

Was this page helpful?
0 / 5 - 0 ratings