Visual Studio 2022 does not start debugging - The program '' has exited with code 0 (0x0) - Stack Overflow

admin2025-04-18  5

I have quite a few applications I developed during the last years. I have the same problem with all of them, when I try to debug them, visual studio shows The program '<program_name>' has exited with code 0 (0x0). without even hitting the first line in the main function.

I already used Visual Studio repair. It did not work. Moreover, If I create a brand-new project with the same code, I can debug it without any issue. Also, I can run the executables generated if I do it outside visual studio.

Any clue what may be wrong?

I have quite a few applications I developed during the last years. I have the same problem with all of them, when I try to debug them, visual studio shows The program '<program_name>' has exited with code 0 (0x0). without even hitting the first line in the main function.

I already used Visual Studio repair. It did not work. Moreover, If I create a brand-new project with the same code, I can debug it without any issue. Also, I can run the executables generated if I do it outside visual studio.

Any clue what may be wrong?

Share Improve this question asked Jan 29 at 8:57 Yván EcarriYván Ecarri 1,75018 silver badges42 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

I had same problem ,In my case I just reinstalled Redistributable package(vc_redist.exe file) of visual studio and it worked .

转载请注明原文地址:http://anycun.com/QandA/1744978358a90319.html