Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug a script that is executed by ScriptExecutor? #1316

Open
Kilian-E opened this issue Jul 14, 2021 · 0 comments
Open

How to debug a script that is executed by ScriptExecutor? #1316

Kilian-E opened this issue Jul 14, 2021 · 0 comments

Comments

@Kilian-E
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant