The breakpoint will not currently be hit (I need to debug .NET ObjectDataSource class)
JanRovner
Posts: 2 New member
Hello, I am new to .NET reflector with VS addon. I'm trying to debug asp.net web app (C#) - step into .net code (I need to debug ObjectDataSource class).
I can use F12 to see the decompiled source ObjectDataSource.cs, the first line is
// Generated by .NET Reflector from C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
then and I've used Generate PDB command to generate PDBs
for the DLL I saw in ObjectDataSource.cs (GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll)
However I'm getting "The breakpoint will not currently be hit" message and I am unable to step into the code.
Lang version is in Generate PDB dialog is set to c# 4.6, web app project/build/advanced is "use latest major version of c#"
Thank you for any ideas.
Jan
I can use F12 to see the decompiled source ObjectDataSource.cs, the first line is
// Generated by .NET Reflector from C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
then and I've used Generate PDB command to generate PDBs
for the DLL I saw in ObjectDataSource.cs (GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll)
However I'm getting "The breakpoint will not currently be hit" message and I am unable to step into the code.
Lang version is in Generate PDB dialog is set to c# 4.6, web app project/build/advanced is "use latest major version of c#"
Thank you for any ideas.
Jan
Best Answer
-
JanRovner Posts: 2 New memberNow, I've solved using hints from
https://stackoverflow.com/questions/2155930/how-do-i-remedy-the-the-breakpoint-will-not-currently-be-hit-no-symbols-have-b
The problem was I've generated PDBs for wrong assembly.
The solution is to Debug->View->Modules to see a right set of loaded modules and then to generate PDBs for them.