Hello @국범 이,
Welcome to Microsoft Q&A forum.
This document: Debug an app that isn’t part of a Visual Studio solution (C++, C#, Visual Basic, F#) mentions:
Debugging features for an app that wasn’t built in Visual Studio are limited, whether you attach to the app or add it to a Visual Studio solution.
If you have the source code, the best approach is to import the code into a Visual Studio project. Then, run a debug build of the app.
If you don’t have the source code, and the app doesn't have debug information in a compatible format, available debugging features are very few.
In your scenario, if you only have .exe
file and .pdb
files, without source files, you can debug but probably, you cannot step into or set/hit breakpoints.
If you still need to debug this exe file by using breakpoints, please refer to this blog: How to debug and profile any EXE with Visual Studio. You may need to consider decompiling the source code.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.