You can specify the code type the debugger should load symbols for in the “Attach to Process” dialog, ensuring it loads the necessary .pdb symbol files correctly. Here are the specific steps to follow:
In Visual Studio, navigate to Debug > Attach to Process.
In the “Attach to Process” dialog, click Select... next to the
“Attach to” option.
In the Select Code Type dialog, try changing it to other options
e.g. Managed v4.0 and/or native.