Closed MUN1Z closed 7 months ago
You can do this. You just need to tell the compilers that you need a debug build. Similar to what you do with VS.
CSScript.EvaluatorConfig.DebugBuild = true;
dynamic script = CSScript.RoslynEvaluator
.LoadMethod(@"public (int, int) func()
{
return (0,5);
}");
(int, int) result = script.func();
@oleg-shilo Its enter in debug using step into, but i cannot verify variable values putting mouse over variables. I can use the Watch to see variable values. I think it is the type of extension of the generated file, for example mine is called 54296.1f7e660d-5192-4e64-851e-419ecf379355.tmp
If the extension were .cs instead of .tmp I believe the debug would work better.
Yep, you are right. Giving the temp file.cs extension does the trick. Done. Will be available in the very next release
Thanks @oleg-shilo i have tested your last commit: I going close this issue.
Hello, i iam trying debug my csx scripts using the hosted script execution, but i do not have success. Its my code example:
Its possible debug using hosted script execution?