Welcome to Microsoft Q&A forum.
Please try to enable native code debugging option in project properties page => Debug => General => Open debug launch profiles UI => try to create a new profile if you didn’t create one => check Enable native code debugging(Enable debugging for managed and native code together, also known as mixed-mode debugging) option.

Best Regards,
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.