Hi eichti,
We can't reproduce the Visual Studio security errors you're seeing. What kind of application are you working on (console, WPF, ASP.NET, etc.)?
If you can get past the security issues, try the following:
We can't reproduce the Visual Studio security errors you're seeing. What kind of application are you working on (console, WPF, ASP.NET, etc.)?
If you can get past the security issues, try the following:
- Insert a
stop
statement somewhere at the beginning of your script. - Make sure to use
WindowsScriptEngineFlags.EnableDebugging
andWindowsScriptEngineFlags.EnableJITDebugging
. -
Run your application outside the debugger. When you get the JIT prompt, select "Manually choose the debugging engines" and click Yes. When prompted, select the script debugging engine. The debugger should attach and navigate to the
stop
statement line.