SFML community forums
Help => General => Topic started by: Josheir on October 02, 2017, 03:06:14 pm
-
I am getting the message : <information not available, no symbols loaded for sfml-graphics-d-2.dll> when hovering over the sf::Text object name for Visual C++ using Visual Studio 2017 (SFML). I am wondering how do I load the symbols so I can view the text object's text for example? I am having trouble debugging without the symbols.
Are there any pdb files available or can I create them myself?
Could you please describe this in a full, easy manner for me?
Thank you,
Josheir
-
If you build SFML yourself you can select to create them in CMake. Alternatively you csn use the debug libs in debug mode, those contain the debug symbols and you can more fully debug them since they aren't optimized.
-
Well I put the pdb file for the windows graphics-d-2.dll in the appropriate folder with the d-2.dlls and I no longer receive the message about no symbols loaded for the text object. However, there is still no actual string readout when I hover over sf:text object it is like it is incomplete.
It seems that the appropriate pdb would be : sfml-graphics-d-2.pdb not : sfml-graphics-d-pdb although like I said it does change the readout a bit and somewhat loads the symbols.
I looked at cmake and it looks very complicated.
Is there any easy way to accomplish the ability to simply read the text for an sfml::text object. It doesn't seem to be a very unusual or far fetched request.
Thank you,
Josheir
-
Actually, this is an IDE configuration. Visual Studio can't know how to read a sf::Text, or the underlying sf::String(remember that sf::Text is not the text itself, but a graphic representation of a sf::String).
So you need to tell Visual Studio(you can most definitely find some resources by Googling) how it is suppose to read sf::Text for the debugger, and to point it to the sf::String(and of course tell him how to read a sf::String).