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

Feature Suggestion: UnityDebug support #224

Open
korgano opened this issue Jun 3, 2023 · 1 comment
Open

Feature Suggestion: UnityDebug support #224

korgano opened this issue Jun 3, 2023 · 1 comment

Comments

@korgano
Copy link

korgano commented Jun 3, 2023

UnityDebug is "UnityDoorstop implementation with Harmony patch that converts pdb to mdb allowing mono to read debug symbols."

This tool eliminates the need to swap out the game's mono-2.0-bdwgc.dll with a hard to obtain, potentially unstable DNSpy compatible copy, but is incompatible with ModTek. Attempting to run both at the same time results in ModTek failing to initialize and the game getting stuck in a loop as it tries to load modded saves.

This would also simplify onboarding of new modders and ensure that DNSpy debugging remains available in the future.

@CptMoore
Copy link
Member

CptMoore commented Jun 4, 2023

Since we already use UnitDoorstop, you can just enable debugging in the doorstop_config.ini by setting debug_enabled to true, no need to replace a mono dll.

Regarding the debug symbols patch, I myself haven't needed it, and I just tested the same harmonypatch `UnitDebug" uses on my install and it was only called once, so that doesn't sound useful:

AppDomain.Load Assembly=MonoMod.Utils.GetManagedSizeHelper, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null rawAssembly.Length=3072 rawSymbolStore.Length=

However, I could just move the debugging (+profiling) documentation to its own page and link it directly, to make it easier to find

https://github.com/BattletechModders/ModTek/blob/master/doc/DEVELOPMENT_GUIDE.md#debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants