Cannot load symbol for class project

Trying to debug my Class project(VS.NET 2017)

When attaching to a process on my local box, the debug breakpoint tells me(attached)
I've tried ensuring the .pdb matches the compiled .dll
I've tried loading all symbols
I've tried "load symbols" by right clicking in module window on the relevant symbol, and when I browse to the .pdb, I am met with:
"A matching symbol file was not found in this folder"

I'm going to shoot myself soon...

please help!!
What are best practices for these symbol files?
Capture.PNG
Richard GouetteIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technical NinjaCommented:
Hi Richard,

First and Foremost, Please don't shoot yourself :D...

On a serious note, are you sure the executable you are trying to debug was built with Debug options. It seems it was build with RELEASE options and optimizations were applied which will not allow you to debug easily.

Regards,
Chinmay.
0
Richard GouetteIT ManagerAuthor Commented:
let me double check...
0
Richard GouetteIT ManagerAuthor Commented:
well, it's set to 'Debug' for build mode, and  under Advanced Compiler Options, "Enable Optimizations is UNchecked.

Cleaned
Rebuilt
Made sure the .dll & .pdb were both stamped at the same time

In Modules window: .symbol is set to "Load Automatically"
Under Symbol locations, I've entered the path to the Debug folder & .pdb
Under Automatic Symbol loading preference:
"Load All modules , unless excluded.

I won;t shoot myself I promise, but man is this frustrating...
0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Chinmay PatelChief Technical NinjaCommented:
True... it is frustrating. Alright are there any other assemblies/projects on which your code depends(not the .Net framework one, but external one).

One more thing to check. Project Settings -> Build -> Advanced... -> Debug Info. What value you see there?
0
Richard GouetteIT ManagerAuthor Commented:
under 'Compile' in project properties?
0
Chinmay PatelChief Technical NinjaCommented:
I think VS2017 uses Compile instead of build. If you can post a screenshot I can confirm.
0
Richard GouetteIT ManagerAuthor Commented:
Capture.PNG
0
Chinmay PatelChief Technical NinjaCommented:
Yupp. That's the one. And there is my answer, your project is generating debug info. One more thing, Can you please change Target CPU to 32-bit?
0
Richard GouetteIT ManagerAuthor Commented:
done
cleaned, rebuilt
same message
;(
0
Richard GouetteIT ManagerAuthor Commented:
hovering over the erroneous breakpoint gives:
Capture.PNG
0
Chinmay PatelChief Technical NinjaCommented:
Do you see something like this in your code

#If(Debug)

Open in new window

0
Richard GouetteIT ManagerAuthor Commented:
did a full solution search, only found a couple lines like:

#If _MyType = "WindowsForms" Then
0
Chinmay PatelChief Technical NinjaCommented:
Is it possible for you to share your project? and the assembly you are trying to debug?
0
Chinmay PatelChief Technical NinjaCommented:
and just one more thing, does it hit any other breakpoints? or none at all?
0
Richard GouetteIT ManagerAuthor Commented:
cleared all/any breakpoints
set one on a Try statement
perform "attach to process", browse down to my exe to attach to
the breakpoint changes to that annoying  yellow symbol you see above..

I wonder now if the telerik install messed ...something up?
Did that several weeks ago, but I may not have been in Debug since then..
0
Richard GouetteIT ManagerAuthor Commented:
just had a thought to try & debug a forms app...
brb
0
Richard GouetteIT ManagerAuthor Commented:
debugging a simple forms app works fine.
0
vo1dCommented:
Is it possible that your Assembly is also installed in the GAC?
0
vo1dCommented:
Write a testfile from that assembly just to make sure, that this is the one beeing loaded.
0
Richard GouetteIT ManagerAuthor Commented:
The Global Assembly Cache contains the following assemblies:

Number of items = 0


I got that by using:  GACUTIL /L <my assemblyname>
0
Chinmay PatelChief Technical NinjaCommented:
Apart from Try did you try setting up/hitting any other debug point? Also, if possible do share your project I don't think this is a standard behavior. Another idea that I have used is, launch the exe you want to debug without the project or source or anything, attach the debugger and see what happens.
0
vo1dCommented:
Could you please check your symbol options in visual studio, if everything is fine there?
SymbolOptions.JPG
0
Richard GouetteIT ManagerAuthor Commented:
I enabled this path, as it's where the dll is initially compiled

Capture.PNG
0
vo1dCommented:
And check with ProcessExplorer, if the image path of your assembly is correct by right click on the process of your application->properties and then .NET Assemblies.processexplorer.JPG
0
vo1dCommented:
Clear the cache.
0
Richard GouetteIT ManagerAuthor Commented:
had done that yesterday, but I'll do it again...standby
0
Richard GouetteIT ManagerAuthor Commented:
I'm ok with sharing..
Upload a .zip of the project directory?
0
Chinmay PatelChief Technical NinjaCommented:
Yes Please. I have been waiting for that 😈
0
Richard GouetteIT ManagerAuthor Commented:
sorry...
;}

how do folks usually do that here, since it won;t allow a .vb etc to be uploaded?
0
vo1dCommented:
e.g. upload a zip to dropbox or similar file hoster and post the link
0
Richard GouetteIT ManagerAuthor Commented:
0
vo1dCommented:
i dont got any issue. i referenced your project in another console app and was able to debug your classtest.JPG. just had to reference your and the p21 assembly. Are you sure that the image path of your assemblies is correct?
0
Richard GouetteIT ManagerAuthor Commented:
is this the path to the DLL in Modules?
If so, it's different than the default compile path, as I have to copy the dll into another location for the vended app to
pick the dll up.
If I try & load the symbol from the default compile path, all I ever get is "A matching symbol file was not found..."

This is bizarre..
0
vo1dCommented:
Yes, i changed the reference property copy local to true, just to have it in the output folder of the ConsoleApp. Is it possible to change your output folder to the directory, where your starting process assembly is located?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard GouetteIT ManagerAuthor Commented:
ok, it's working.

I pointed my compile output path to  this 'alternate' directory mentioned above.. and it worked(deleted any instance of dll/pdb first)
There must be a reason why it doesn;t work to manually copy the DLL /pdb into this folder after compiling...
thanks so much for helping..
Rich
0
Richard GouetteIT ManagerAuthor Commented:
many thanks for your time.
Rich
0
vo1dCommented:
Your welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.