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

Harmony patch and transpile support #332

Open
t1a2l opened this issue Jun 22, 2024 · 2 comments
Open

Harmony patch and transpile support #332

t1a2l opened this issue Jun 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@t1a2l
Copy link

t1a2l commented Jun 22, 2024

Problem Description

today if you patch function, if i prefix or postfix it i cant breakpoint on the original function, also when trnspiling a function i cannot see the new generated function that has been transpiled, to see if my transpile worked correctly.

Proposal

allow breakpoint in original function, show generated transpiled function. (maybe allow debug).

Alternatives

No response

Additional Context

No response

@t1a2l t1a2l added the enhancement New feature or request label Jun 22, 2024
@GazziFX
Copy link

GazziFX commented Jun 22, 2024

IIRC Harmony uses Mono.Cecil as backend (not really dynamic method), so you need somehow locate in-memory module which contains your patch. Breakpoints isnt working because even if you patching with prefix and postfix it creates transpiled method and put jump on original and it will never be called

@t1a2l
Copy link
Author

t1a2l commented Jun 27, 2024

@GazziFX @ElektroKill Someone created a tool that show a preview of what the code of the result of the transpiler will look like. so even this will be enough. https://github.com/Zetrith/Remodder
I just rather not use jetbrains because it is not free, and I prefer this tool better.

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

No branches or pull requests

2 participants