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

dnSpy debugger erroneously reports the exit code 0 instead of the actual exit code #358

Closed
riQQ opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working debugger Relating to the debugger component
Milestone

Comments

@riQQ
Copy link

riQQ commented Sep 12, 2024

dnSpyEx version

6.5.1

Describe the Bug

The dnSpy debugger erroneously reports the exit code 0, even though the actual exit code was different.

I reproduced this bug with 6.5.1 and the latest ci artifacts based on b1fbfbc with the .NET Framework version and the .NET version with dnSpy and debugged application in both x64 and x86.

Visual Studio reports the error code correctly when debugging the test application below.

How To Reproduce

Compile a basic program and debug it with dnSpy.

namespace ReturnNonZeroExitCode
{
    internal class Program
    {
        static int Main(string[] args)
        {
            return 539;
        }
    }
}

Expected Behavior

The exit code is reported correctly

Actual Behavior

The dnSpy debugger erroneously reports the exit code 0

Additional Context

No response

@riQQ riQQ added the bug Something isn't working label Sep 12, 2024
@ElektroKill ElektroKill added the debugger Relating to the debugger component label Sep 12, 2024
@ElektroKill ElektroKill added this to the vNext milestone Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working debugger Relating to the debugger component
Projects
None yet
Development

No branches or pull requests

2 participants