Skip to content

Commit e6e9176

Browse files
authored
Add scriptengine debugging info
1 parent 1efc054 commit e6e9176

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ private void OnDestroy()
5959
}
6060
```
6161

62+
If you want to debug plugins loaded by ScriptEngine you'll have to find the loaded assembly after every reload, since by necessity a new, renamed copy of the plugin assembly is loaded on every reload. You either have to find the loaded plugin in the modules view of your debugger (it will be named something like `data-xxxxxxxxxxxxxxx`, sorting by timestamp can help find it or you can use `Debugger.Break()` in your plugin's init), or you can turn on the `DumpAssemblies` setting and use the dropped dll files to debug (check the setting description for more info).
63+
6264
**How to use:** This is a plugin. Put the compiled DLL into `BepInEx/plugins`.
6365

6466
### Startup Profiler

0 commit comments

Comments
 (0)