How to build Debug configuration with debugging symbols?
#1
I followed the instructions here to obtain a Visual Studio Solution:
http://kodi.wiki/view/HOW-TO:Compile_Kodi_for_Windows and ran BuildSetup.bat to create the solution.

The solution is created and does compile.
One note here: 4 projects are always out-of-date because the tag files: export-files, generate_json_header, generate_shaders, and pack-skins are never created. There must be bugs in the associated cmake files.

I was suprised to note that the creation of pdb files is disabled in all but the Release configuration.
Most notably, it's disabled in the Debug configuration, which makes that configuration entirely pointless, IMHO.

I didn't find either Kodi.pdb nor any vc140.pdb files that might contain the debugging symbols for kodi.exe.
As a result, I cannot use breakpoints to debug kodi.

@developers:
How do you debug kodi interactively?
Reply
#2
Took me a while to notice that the creation of pdb files is indeed enabled in all configurations,
BUT - since cmake specifies all options for each and every individual file, the project settings are meaningless in most cases.
So I had to inspect the settings of individual files.

However, pdb files were still not created.
I ended up correcting the projects manually.
Now I can break into the VideoPlayer and have a full call stack with all symbols.
Reply

Logout Mark Read Team Forum Stats Members Help
How to build Debug configuration with debugging symbols?0