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

Could you modify MethodBodyWriter in order to show more messages. #61

Closed
CreateAndInject opened this issue Apr 29, 2016 · 2 comments
Closed

Comments

@CreateAndInject
Copy link
Contributor

When I modify method body, I always get an error:
Error calculating max stack value. If the method's obfuscated.....
I know I make a mistake, but I don't know which method.

So, how can I know which method is wrong and correct my mistake.

@0xd4d
Copy link
Collaborator

0xd4d commented May 4, 2016

You can search for the error string and set a breakpoint there. You'll see what method it is. Or you can run peverify afterwards, it will show you all errors.

@CreateAndInject
Copy link
Contributor Author

No, I can't, because I can only find cilbody in MethodBodyWriter, and I can not get MethodDef from CilBody.

@0xd4d 0xd4d closed this as completed Jun 20, 2016
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