-
Notifications
You must be signed in to change notification settings - Fork 42
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
Missing information on how to debug with dnSpy using Harmony #19
Comments
Assuming you use bepinex, to debug harmony patched methods you have to change harmony backend to cecil in bepinex.cfg. You still can't easily set a breakpoint inside the method but you can step into it and see it in call stack. For debugging preloader patched assemblies check https://bepinex.github.io/bepinex_docs/master/articles/advanced/debug/assemblies_dnSpy.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have been following information from this wiki site on how to debug with dnSpy with DumpAssemblies. However, this looks like it doesn't apply to Harmony as there is no mention and testing is confirms my worries.
I have created a simple Transpiler patch using Harmony and I want to debug it further.
I have enabled as instructed
and the results are not promising
The only dumped assembly is UnityEngine.CoreModule.dll and setting BreakBeforeLoadAssemblies to true, crashes the game while loading.
Assembly-CSharp is not reacting to my breakpoints anymore for the modified method!
Callstack from this method is marked as ??? in dnSpy
Is there any way to debug using HarmonyX or I need to go to pre-patch assembly route?
The text was updated successfully, but these errors were encountered: