This information is only available if the ".pdb" file for the DLL(s) in question is available.
Therefore, you should ensure that the appropriate ".pdb" files are alongside their corresponding DLLs.
You also need to enable full data in the PDB files. Debug builds do this by default, but release builds do not include the line number information.
You can configure a release build to do so by going to the project's Build page, ensure you have selected the "Release" configuration, then click the "Advanced" button at the bottom of the page. In the "Advanced Build Settings" dialog, you need to select "Full" for the "Debug Info" setting.