This version-agnostic Fabric mod allows you to inject NSight or Renderdoc into Minecraft, allowing you to attach at any time instead of having to launch the game through the GUI either manually or by launching the launcher (wow that sucks to say).
- Install Fabric (1.18.2 or later, as long as the loader is 0.15.0 or newer)
- Drop the mod into your mods folder
- Launch the game, pick the debugger you want to use
- Attach to the game process via your debugger of choice
- Profit?
You can skip the dialog (useful for some dev environments) by setting the debugging
flag to the debugger you want.
Allowed options are:
-Ddebugger=nsight-frame
-Ddebugger=nsight-gpu
-Ddebugger=renderdoc