Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: step into assembly

I have a project that references an assembly that I have the code to. I also have all of the PDB files, etc. However, at some point I clicked the wrong button on a dialog box while debugging, and now I can no longer step into the assembly code. I know this description is a bit vague, but I believe that the dialog that I accidentally clicked through was the one that complains when your "source code is newer than the built version of the assembly, continue debugging?" but I can't be sure. At any rate, I am positive that there is some easy way to get Visual Studio back in a state where it will start stepping through my assembly code again. Any great ideas?

like image 679
A.R. Avatar asked Sep 20 '11 11:09

A.R.


1 Answers

Please ensure the following in your child project:-

  • "build clean" your child project. please ensure that all dll and pdb files have been deleted from the bin\debug folder in your child project.

  • "build" your child project by clicking build or ctrl-shift-b. Please do not hit F5 as for some reason it does not get the latest dll and pdb file.

  • please ensure that you do not have a reference to the "Release" build of the parent dll, sometimes it has caused problems for me depending on the release build configuration for that project. It should be the "Debug" build configuration for the parent project and you should add reference from the debug folder or use "Reference Path" in visual studio.

Now you can run the project by hitting F5.

Hope this helps.

like image 97
Nabheet Avatar answered Nov 22 '22 23:11

Nabheet