Decompile Source to Symbol File disabled - visual-studio-2022

I am using VS 2022 (17.3.3) to debug a binary that has the symbols loaded. I would like to load up the disassembly, but the option Decompile Source To Symbol File is disabled. Does anyone know why it is not available/

Related

how to debug aspnetcore Microsoft.Extensions*.dll by Microsoft.Extensions*.pdb?

Recently I compiled dotent runtime source 6.0.1 and aspnetcore source 6.0.1, and used Rider to debug aspnetcore project. Basically all dlls can be debugged with breakpoints, only Microsoft.Extensions.* cannot. Rider Debug Console outputs something like : "Loaded Assembly '/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.1/Microsoft.Extensions.Hosting.Abstractions.dll'
Loading module /usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.1/Microsoft.Extensions.Hosting.Abstractions.dll in application domain 1:clrhost
Pdb file for assembly /usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.1/Microsoft.Extensions.Hosting.Abstractions.dll was not found or failed to read ” , about 25 Microsoft.Extensions The .* pdb files are not getting after compiling the source code. How to get these pdb files? And how to set up to debug Microsoft.Extensions.*.dll? Not using SourceLink etc.

How to low-level debug a COM DLL (Firefox plugin) method via C++ code without debug info?

Given the following:
the 32-bit DLL code file of some old Firefox plugin (i.e. a DLL containing among other a Typelib, XSD and XSL entries), without source code or debug info, originally coded in C++ and compiled with Visual Studio,
the name and parameters of an exported function/method in this DLL (a function of the Firefox plugin, accessable in JS code),
Visual Studio Community 2013 running on Windows 7,
experience in C++ development, but not with COM or Firefox,
experience with debugging Intel assembler code,
a code license which does not prohibit disassembling the DLL,
I would like to do this: Load the DLL into some C++ code, and step on CPU level into the code of the function to find out what it exactly does.
Can you give me any hint on where to start and how get this done? I guess the DLL may need some Firefox-specific initialization before I can call the function which I would like to debug. Could this be done with the Firefox SDK, without source code and debug info for the DLL? Or may I succeed in "nakedly" loading the DLL, finding the entry point of the - rather simple - function (how?) and calling it?
Thanks for any hints.
If no pdb file or source code, it is hard for you to debug the dll file, since the debugger loads debugging information from the PDB file and uses it to locate symbols or relate current execution state of a program source code. Visual Studio uses PDB files as its primary file format for debugging information during debugging. If no those files, you couldn't debug that library.
Update:
We are dynamically loading a dll to one project using LoadLibrary() function, but if you want to step into your dll file, it really require the pdb file. A simple sample is that you could create and place one pdb file in the same folder as one simple custom dll library project located. I think Visual Studio will automatically search the directory and load them, you could find the information in your Debug modules windows.
The following case is not the same issue as yours, but it also shared us that it would load the pdb file if the dll file was really called by one project/process:
Does winbase::LoadLibrary() load .pdbs?

Visual Studio 2013 Source not available (can't debug)

I suddently can't debug (in debug mode) on a VB.NET project developed on Visual Studio 2013 Community.
VS says first it can't load the symbols. I load them using the symbol servers and then it says I can't debug. The message says "No source available" (although it's definitely my code).
In the project's property I have activated the debug mode with full info and debug and trace active.
"Enable Just My Code" is disabled.
EDIT:
Microsoft.VisualStudio.Debugger.Runtime.dll doesn't load the symbols
When I go to the Modules' window and select "load symbols", VS loads it from the cache.
It can't find the symbols for the Debugger anywhere else.
C:\Desenvolvimento\Focagem\Gestinf\Código\Working Copy\TestWorkApp\bin\x86\Release\Microsoft.VisualStudio.Debugger.Runtime.pdb: Cannot find or open the PDB file.
C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.pdb: Cannot find or open the PDB file.
f:\binaries\Intermediate\debugger\runtime.csproj__624416745\objr\x86\Microsoft.VisualStudio.Debugger.Runtime.pdb: Cannot find or open the PDB file.
C:\Windows\Microsoft.VisualStudio.Debugger.Runtime.pdb: Cannot find or open the PDB file.
C:\Windows\symbols\dll\Microsoft.VisualStudio.Debugger.Runtime.pdb: Cannot find or open the PDB file.
C:\Windows\dll\Microsoft.VisualStudio.Debugger.Runtime.pdb: Cannot find or open the PDB file.
C:\Users\joao.santos\AppData\Local\Temp\SymbolCache\Microsoft.VisualStudio.Debugger.Runtime.pdb\bbffb22f8979464b8744c7c973fbe2c01\Microsoft.VisualStudio.Debugger.Runtime.pdb: Symbols loaded.

FastPdfKit Warnings

I am using the FastPdfKit framework, which itself is very good. Unfortunately, it's generating 74 warnings as a result of the developer not caring enough. I have contacted the developer, and received no help.
Here is a small sample of the warnings I am receiving:
(null): warning: (armv7) /Users/nick/Library/Developer/Xcode/DerivedData/FastPdfKit-fzecbtvxoxzaebbvelxsxcphcrom/Build/Intermediates/FastPdfKit.build/Release-iphoneos/FastPdfKit.build/Objects-normal/armv7/WebBrowser.o unable to open object file
(null): warning: (armv7) /Users/nick/Library/Developer/Xcode/DerivedData/FastPdfKit-fzecbtvxoxzaebbvelxsxcphcrom/Build/Intermediates/FastPdfKit.build/Release-iphoneos/FastPdfKit.build/Objects-normal/armv7/ReaderViewController.o unable to open object file
(null): warning: (armv7) /Users/nick/Library/Developer/Xcode/DerivedData/FastPdfKit-fzecbtvxoxzaebbvelxsxcphcrom/Build/Intermediates/FastPdfKit.build/Release-iphoneos/FastPdfKit.build/Objects-normal/armv7/OutlineViewController.o unable to open object file
(null): warning: (armv7) /Users/nick/Workspaces/MobFarm/git/FastPdfKitSample/FPKCore/libFastPdfKit.a(AudioStreamer.o) unable to open object file
(null): warning: (armv7) /Users/nick/Workspaces/MobFarm/git/FastPdfKitSample/FPKCore/libFastPdfKit.a(MFPDFOutline.o) unable to open object file
My name is James, and so the directory my project is in is actually Users/James/Developer. This Nick guy is the developer, and he couldn't care less. How could I go about removing these, or brute force hiding these specific warnings. I want to avoid hiding any other warnings I may need to see in the future.
Thank you.
In your Project > Build Settings > Build Options > Debug Information Format select DWARF instead of DWARF with dSYM File.
I just had this issue today when creating a framework.
It seemed that no matter what I did building the framework I would get these kind of warnings when including it in another project.
The way I solved this was trial and error and to be honest I still do not understand what is going on.
Firstly in Xcode (4.5 for me) edit schemes, select Run and change build configuration to Release. (You can leave Debug Information Format to DWARK with dSYM File and you want to so you can symbolcate crash logs)
Click Run on the Tool bar (note command+R or Product - Run are disabled).
Then once built, right click framework in products and show in finder.
Choose the framework in the Build/Products/Release-iphoneos folder.
Should now not have these warnings.
If anyone knows what is going on here please share!

Adding a .dll to a NetBeans 7.0 C project. Unable to view .dll

I am trying to read a .wav file and hence need to include the libsndfile binary in my project. I am using NetBeans 7.0 and the Tools->Library->Add new library option doesnt work since the Add library button is disabled.
I tried adding the path of the header file to the Project->Build properties and the code compiled. But when I try to add the .dll in a similar way via Project->Linker properties NetBeans is unable to find the .dll. If i navigate to the folder from MyComputer->..i can see the .dll/ However NetBeans doesn't display it.
I am using a Win 7 64 bit machine & I have setup the appropriate libsndfile binary. Been at it for a day now. Would appreciate any help.
Thanks,
Neeraj
DLL doesnotrequires setting of class path. So you can load a DLL from local file system. Copy the DLL and go to the file explorer tab strip and paste the file.
First you have to check that your compiler version (32 or 64 bit) matches libsndfile version. I suppose you did it correctly.
I also suppose you correctly added the sndfile.h to the include path.
You will need two library files actually. I think you forgot the one to compile properly.
Compiling and Linking (.lib file)
Note that Netbeans 7.0 doesn't accept .lib files and you need to link the .lib file for your project to compile. So, in C:\Program Files\Mega-Nerd\libsndfile\lib you need to copy libsndfile-1.lib and rename the .lib extension to .a.
Then, in Poject Properties > Build > Linker > Additional Libraries Directories add the path to the \lib directory. For me it's Program Files/Mega-Nerd/libsndfile/lib.
A few lines below, you'll have Poject Properties > Build > Linker > Libraries. Specify the location of the library file named libsndfile-1.a, for me it's C:\Program Files\Mega-Nerd\libsndfile\lib\libsndfile-1.a.
Now it should at least compile.
Executing (.dll)
Now, it likely will not execute even if it compiled. That's because the .dll file is needed to execute the final .exe. Simply copy the libsndfile-1.dll file (for me it's in C:\Program Files\Mega-Nerd\libsndfile\bin) to your project, next to the .exe file. For me, it's in C:\proj\dist\Debug\Cygwin-Windows\proj.exe.
Edit: I checked with the today's 8.2 version of NetBeans, and the procedure is exactly the same.