Lỗi: You are debugging a Release build of .dll. Using just My Code with Release builds using compilier optimizations results in a degraded debugging experience (e.g breakpoints will not be hit) in Visual Studio 2019. Mình đang debug trên Microsoft Visual Studio Professional 2019 thì bị báo lỗi như trên: Just My Code Waming.
Bước 1 truy cập vào Solution và click vào Project của bạn chọn Properties Tại tab Build* click tắt và chọn check chọn như ở hình dưới Define Debug constant: checked Optimize code: Uncheck Tìm thấy xử lý ở đây và làm đã thành công: https://stackoverflow.com/questions/38601643/error-you-are-debugging-a-release-build-of-x-dll