Unofficial revival of the well known .NET debugger and assembly editor, dnSpy
Go to file
ElektroKill d02837050c
Update decompiler submodule
2024-02-26 19:39:08 +01:00
.github Bump actions/upload-artifact from 4.3.0 to 4.3.1 (#296) 2024-02-12 19:45:40 +01:00
Build Update build helpers 2023-12-28 21:33:17 +01:00
Extensions Update decompiler submodule 2024-02-26 19:39:08 +01:00
Libraries Update TreeView library 2021-06-13 12:30:00 +02:00
dnSpy Follow up to 006e76c938 2024-02-13 20:47:29 +01:00
images Update README 2017-10-06 23:39:36 +02:00
.editorconfig Added support for *.url files, closes #205 . (#206) 2023-06-04 20:39:09 +00:00
.gitignore Ignore JetBrains Rider files 2019-07-09 00:52:33 +02:00
.gitmodules Specify correct branches in .gitmodules 2021-11-11 15:09:05 +01:00
Directory.Build.props Remove utf8 bom 2019-01-01 12:52:57 +01:00
Directory.Build.targets Add Czech and Portuguese, Brazilian translations 2019-10-21 20:07:49 +02:00
DnSpyCommon.props Update dependencies 2024-02-24 12:52:30 +01:00
DnSpyRoslyn.props Update to .NET 8 2023-11-16 22:31:26 +01:00
LICENSE.txt Create LICENSE.txt 2022-08-31 11:47:48 +00:00 Typo fix in (#257) 2023-11-05 20:34:54 +00:00
build.ps1 Update to .NET 8 2023-11-16 22:31:26 +01:00
clean-all.cmd Revert "Remove NRefactory cleanup from build files" 2021-09-16 20:40:18 +02:00
dnSpy.sln Remove unnecessary `PatchSubSystem` MSBuild task 2022-12-26 11:20:05 +01:00
dnSpy.snk Add all files 2016-04-25 07:06:45 +02:00


dnSpyEx is an unofficial continuation of the dnSpy project which is a debugger and .NET assembly editor. You can use it to edit and debug assemblies even if you don't have any source code available. Main features:

  • Debug .NET and Unity assemblies
  • Edit .NET and Unity assemblies
  • Light and dark themes

See below for more features




Latest stable release:

If you like living on the edge you can use the latest "beta" builds from:


git clone --recursive
cd dnSpy
# or dotnet build
./build.ps1 -NoMsbuild

To debug Unity games, you need this repo too:


  • Debug .NET Framework, .NET and Unity game assemblies, no source code required
  • Set breakpoints and step into any assembly
  • Locals, watch, autos windows
  • Variables windows support saving variables (eg. decrypted byte arrays) to disk or view them in the hex editor (memory window)
  • Object IDs
  • Multiple processes can be debugged at the same time
  • Break on module load
  • Tracepoints and conditional breakpoints
  • Export/import breakpoints and tracepoints
  • Optional Just My Code (JMC) stepping filters for system libraries
  • Call stack, threads, modules, processes windows
  • Break on thrown exceptions (1st chance)
  • Variables windows support evaluating C# / Visual Basic expressions
  • Dynamic modules can be debugged (but not dynamic methods due to CLR limitations)
  • Output window logs various debugging events, and it shows timestamps by default :)
  • Assemblies that decrypt themselves at runtime can be debugged, dnSpy will use the in-memory image. You can also force dnSpy to always use in-memory images instead of disk files.
  • Bypasses for common debugger detection techniques
  • Public API, you can write an extension or use the C# Interactive window to control the debugger

Assembly Editor

  • All metadata can be edited
  • Edit methods and classes in C# or Visual Basic with IntelliSense, no source code required
  • Add new methods, classes or members in C# or Visual Basic
  • IL editor for low-level IL method body editing
  • Low-level metadata tables can be edited. This uses the hex editor internally.

Hex Editor

  • Click on an address in the decompiled code to go to its IL code in the hex editor
  • The reverse of the above, press F12 in an IL body in the hex editor to go to the decompiled code or other high-level representation of the bits. It's great to find out which statement a patch modified.
  • Highlights .NET metadata structures and PE structures
  • Tooltips show more info about the selected .NET metadata / PE field
  • Go to position, file, RVA
  • Go to .NET metadata token, method body, #Blob / #Strings / #US heap offset or #GUID heap index
  • Follow references (Ctrl+F12)


  • BAML decompiler and disassembler
  • Blue, light and dark themes (and a dark high contrast theme)
  • Bookmarks
  • C# Interactive window can be used to script dnSpy
  • Search assemblies for classes, methods, strings, etc
  • Analyze class and method usage, find callers, etc
  • Multiple tabs and tab groups
  • References are highlighted, use Tab / Shift+Tab to move to the next reference
  • Go to the entry point and module initializer commands
  • Go to metadata token or metadata row commands
  • Code tooltips (C# and Visual Basic)
  • Export to project

List of other open source libraries used by dnSpy

  • ILSpy decompiler engine (C# and Visual Basic decompilers)
  • Roslyn (C# and Visual Basic compilers)
  • dnlib (.NET metadata reader/writer which can also read obfuscated assemblies)
  • VS MEF (Faster MEF equals faster startup)
  • ClrMD (Access to lower level debugging info not provided by the CorDebug API)
  • Iced (x86/x64 disassembler)
  • Newtonsoft.Json (JSON serializer & deserializer)
  • NuGet.Configuration (NuGet configuration file reader)

Translating dnSpy

Click here if you want to help with translating dnSpy to your native language.


See the Wiki for build instructions and other documentation.


dnSpy is licensed under GPLv3.