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

ScriptEngine: Add assembly dumping setting for debugging of reloaded plugins #15

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

tom300z
Copy link
Contributor

@tom300z tom300z commented Jun 22, 2024

Similarly to the LoadDumpedAssemblies BepInEx Preloader option, this adds a config option which dumps Assemblies & Symbols to the disk.
The assemblies are then loaded from the saved dll so that debuggers can then load the matching symbols & break/step through plugin code.

Tested successfully on Rider but should work for all debuggers that are configured to read symbols from the BepInEx folder.

@tom300z tom300z changed the title Implement assembly dumping to enable debugging of reloaded plugins ScriptEngine: Implement assembly dumping to enable debugging of reloaded plugins Jun 22, 2024
Copy link
Member

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, just the log nitpick.

src/ScriptEngine/ScriptEngine.cs Show resolved Hide resolved
src/ScriptEngine/ScriptEngine.cs Outdated Show resolved Hide resolved
@ManlyMarco ManlyMarco changed the title ScriptEngine: Implement assembly dumping to enable debugging of reloaded plugins ScriptEngine: Add assembly dumping setting for debugging of reloaded plugins Jun 24, 2024
@ManlyMarco ManlyMarco merged commit 4010d2c into BepInEx:master Jun 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants