Skip to content

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

Description

@Kilian-E

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions