I am loading dll's as plugins in my software. When one of the plugins throws an error, i want my plugin host to catch the exception and print the file and line number at which the error occured. I am unable to get the line numbers for the frames in my stacktrace that are inside the plugin, while my stacktrace Does contain line numbers for the host application.
I placed my plugin's pdb files in the same folder as the plugin folder, but this does not seem to solve the problem.
Note that i do NOT want to attach visual studio to my process, i need to get the line numbers without attaching the debugger.
Any ideas?
EDIT: a lot of people marked this post as a duplicate to Display lines number in Stack Trace for .NET assembly in Release mode. This post does not resolve the issue for me, i am not using release builds, i am using debug builds (with pdb-full set in the properties panel)