Hello,
I use the https://github.com/scriptcs-contrib/scriptcs-mef/ module. This module calls the ExecuteScript method of the ScriptExecutor class in order to compile/execute cs-scripts. So far so good.
When I pass "-debug" as argument to the scriptArgs parameter of the method, I assume the script engine to create an assembly that can be debugged. But it seems this assumption is wrong:
In the ReturnValue of the scriptResult (CommonScriptEngine → Execute()), I can see, that the created assembly has the DebuggableAttribute in the CustomAttributes-List. But its constructor parameter ist 263 which is not a valid value according to the microsoft docs.
Is it possible to compile the assembly in a way, that it can be debugged?
Best regards
Kilian
Hello,
I use the https://github.com/scriptcs-contrib/scriptcs-mef/ module. This module calls the
ExecuteScriptmethod of theScriptExecutorclass in order to compile/execute cs-scripts. So far so good.When I pass "-debug" as argument to the
scriptArgsparameter of the method, I assume the script engine to create an assembly that can be debugged. But it seems this assumption is wrong:In the
ReturnValueof the scriptResult (CommonScriptEngine → Execute()), I can see, that the created assembly has theDebuggableAttributein the CustomAttributes-List. But its constructor parameter ist 263 which is not a valid value according to the microsoft docs.Is it possible to compile the assembly in a way, that it can be debugged?
Best regards
Kilian