-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
dnSpy starts the application without attaching a debugger #297
Comments
Hi, could you perhaps provide me with the DLL and any Thanks in advance!
The information about Unity games does not apply to non-Unity games. No patching should be necessary to get your .NET 7 application/game working under the debugger. If you can provide the file alongside the .json files next to it, I will be able to investigate the cause of the error further! |
@ElektroKill hi! I've sent you the DLL file and the |
Hi, I took a look at the files you provided. Looking at the contents of
The first method is preferable as it does not require modification of the game files and I suggest you try that first. If it doesn't work, try the second method. Let me know of the results and if the issue can be marked as closed! |
@ElektroKill First one didn't work, sadly. Installed this version of .net, tried running in both .net and .net framework modes. Same result. Second one didn't work either. Got the same error when trying to run with host: But without it got this: Then I tried installing 7.0.14 .net binaries (previously only installed the SDK) - same error. P.S. I haven’t seen anyone respond so quickly, but at the same time so thoroughly - cheers. |
Can you make sure that you installed the x64 version of the 7.0.14 runtime? You can do this by running the If you could post the contents of |
|
Huh, it looks like you do have the appropriate runtimes installed. Can you check please if inside the directory where
I managed to obtain a copy of the game and for me those files are present and I am able to attach using dnSpy.exe when using the 64 bit version. |
Same build, but I was using .net version. Downloaded framework version, same result sadly. |
I've even reinstalled the whole game - it attached for a little bit longer, but still, only momentarily 😭 |
That is very strange. At this point, I honestly have no idea what could be causing dnSpy to attach. All the necessary files for debugging appear to be present but for some reason when dnSpy awaits the .NET debugger startup event it times out after the 5 seconds. dnSpy/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/dndbg/Engine/CoreCLRHelper.cs Lines 338 to 353 in 4fe02eb
Can you try one more thing and that is let the game fully load and then try to attach dnSpy through the |
dnSpyEx version
6.5.0
Describe the Bug
I'm trying to debug a .NET 7.0 dll that the game loads, but dnSpy seems to not do anything. It attaches just for a mere moment, then stops doing anything, launching the application.
The game in question is Cosmoteer.
I have these settings (I didn't find the option to switch languages):
From I've read from the docs, for debugging unity games you need patched dlls, but there's no mention of non-unity games? How to debug those? I didn't find any info searching either, like there's something obvious that I'm missing.
If the game does indeed need some dll patched (I guess for invoking dnSpy methods or something?), I happen to have a C++ injector ready (that I use for modding the game by injecting C# dlls).
How To Reproduce
cosmoteer.dll
inside bin dir of Cosmoteer game with dnSpy.Expected Behavior
Actual Behavior
Additional Context
No response
The text was updated successfully, but these errors were encountered: