There are two problems for your problem. Firstly, your code and compiled dlls have different code (even a small change in line numbers can be considered as different code). So make sure your plugin is updated. Secondly, you attach your visual studio to the wrong process. Try debugging using google chrome by following these steps -
1. Open a command prompt and run google chrome with the following options --plugin-startup-dialog --wait-for-debugger. For instance -
"C: \ program files (x86) \ Google \ Chrome \ Application \ chrome.exe" --plugin-startup-dialog --wait-for-debugger ""
2. A dialog box will appear in which you can connect to this chrome process. After attaching the process identifier provided by chrome to this process, you can use breakpoints in debug mode.
source share