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 change the value of an argument at a breakpoint? #100

Open
renerod opened this issue Aug 8, 2023 · 0 comments
Open

How to change the value of an argument at a breakpoint? #100

renerod opened this issue Aug 8, 2023 · 0 comments

Comments

@renerod
Copy link

renerod commented Aug 8, 2023

We've implemented an EE for our language basing it on the Iris example. When running and hitting a breakppoint, we can change values of globals and locals but not of method arguments. This is the IL code we generate for updating the second arg with some value:

.method public hidebysig instance void '$.M1'(string 'elUno', valuetype [mscorlib]System.Decimal 'elDos') cil managed
{
.locals init ([0] valuetype [mscorlib]System.Decimal '#cash', [1] string 'des@', [2] string 'des@ita', [3] valuetype [mscorlib]System.DateTime 'horaL', [4] valuetype [mscorlib]System.DateTime 'diaL', [5] valuetype [mscorlib]System.Decimal 'diaDec', [6] string 'diaStr', [7] valuetype [mscorlib]System.DateTime 'stamp')
ldc.i4 76543
ldc.i4.0
ldc.i4.0
ldc.i4 131072
newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, int32)
starg.s 2
ret
}

but the value does not get changed in the program. Are we generating the right IL for it? What are we missing?

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