Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Debug symbols not loading for sfml-graphics-d.lib  (Read 6455 times)

0 Members and 2 Guests are viewing this topic.

GetOutOfBox

  • Newbie
  • *
  • Posts: 8
    • View Profile
Debug symbols not loading for sfml-graphics-d.lib
« on: February 01, 2015, 04:23:33 am »
I haven't had any issue running my basic sfml test program, but for some odd reason Visual Studio is not loading the debug symbols from the debug library or is unable too. As a consequence I can't debug any Graphics objects.

First of all, I'm running Visual Studio 2012. I also have the correct and up to date version of SFML, I double-checked (fully reinstalled and copied the bins) before posting. I've verified my Project Configuration against the tutorial, I'm using the correct debug libs. I've played around with different Subsystems and Runtime Library settings. The problem remains.

I have verified that other SFML libs are not affected, sf:Keyboard for example is debuggable.

Anyone have any ideas? I've tried googling to no avail.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Debug symbols not loading for sfml-graphics-d.lib
« Reply #1 on: February 01, 2015, 08:47:38 am »
The pdb files which contain the debug symbols aren't being shipped.
Question is, why do you need to debug SFML itself?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GetOutOfBox

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: AW: Debug symbols not loading for sfml-graphics-d.lib
« Reply #2 on: February 03, 2015, 02:58:33 am »
The pdb files which contain the debug symbols aren't being shipped.
Question is, why do you need to debug SFML itself?

Isn't the question more: "Why wouldn't I want to debug SFML itself?". I'm not aware of any reason why I should not be able to debug open-source code; so that being said all not shipping the symbols does is limit my ability to potentially uncover an issue or at least better describe it. It's not as if it's bug-free, to my knowledge, there are 55 bugs being tracked in the git at the moment.

Now, I may be missing something and I'm open to hearing it!

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Debug symbols not loading for sfml-graphics-d.lib
« Reply #3 on: February 03, 2015, 05:23:17 am »
I think you need to calm down a bit. SFML changes undergoe pretty extensive testing before being pushed to the main branch, and even more testing before an official release is made. That being said, the team is small and its unfair to expect them to be able to test everything, especially since, for example, the MacOS and mobile sides have few contributors.

To the point, nothing is stopping you from building SFML yourself and using the symbols from those. SFML does not need to ship with debug symbols.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Debug symbols not loading for sfml-graphics-d.lib
« Reply #4 on: February 03, 2015, 09:45:09 am »
I'm not aware of any reason why I should not be able to debug open-source code;
You can of course, just not with the officially provided files. AS Gambit pointed out you can build it yourself, though it even might need a tweak in CMake, otherwise you'd end up with multiple vs12.pdb files or similar.

It's not as if it's bug-free, to my knowledge, there are 55 bugs being tracked in the git at the moment.
No software is ever bug free. Git is used for version control not for tracking bugs. The issue tracker is hosted on GitHub, which is a Git front-end, but not Git itself.


After I recently ran into this post, I've been left wondering if we shouldn't care more about the PDB files. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GetOutOfBox

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Debug symbols not loading for sfml-graphics-d.lib
« Reply #5 on: February 06, 2015, 11:10:07 pm »
I think you need to calm down a bit. SFML changes undergoe pretty extensive testing before being pushed to the main branch, and even more testing before an official release is made. That being said, the team is small and its unfair to expect them to be able to test everything, especially since, for example, the MacOS and mobile sides have few contributors.

To the point, nothing is stopping you from building SFML yourself and using the symbols from those. SFML does not need to ship with debug symbols.

You're missing my point. I was demonstrating that it IS ordinary for software projects to have bugs, I was not criticising that fact. My point is that since there IS a small development team, it makes sense to empower users to help in the debug process.

Given that including PDB files does not require any extra effort on the part of the development team (they are automatically built; you must specifically choose not to build them), it puzzles me that they would not be included.

I'm not aware of any reason why I should not be able to debug open-source code;
You can of course, just not with the officially provided files. AS Gambit pointed out you can build it yourself, though it even might need a tweak in CMake, otherwise you'd end up with multiple vs12.pdb files or similar.

How is this a justification for not releasing the prebuilt ones? I'm wondering why PDB files are intentionally not included, forcing users to build them themselves. I'm understanding of any reason it somehow puts unnecessary burden on the dev team, but I'm not seeing one.

It's not as if it's bug-free, to my knowledge, there are 55 bugs being tracked in the git at the moment.
No software is ever bug free. Git is used for version control not for tracking bugs. The issue tracker is hosted on GitHub, which is a Git front-end, but not Git itself.

I was not implying anything critical about the subject, I was pointing out that very fact that every project is vulnerable to bugs and so empowering users to debug it works towards the goal of reducing them.

As for git, doesn't it seem a little bit like pointless arguing of semantics here? We both know what I was referring too. The fact I said Git and not "Hosted on Github" is neither here nor there.

After I recently ran into this post, I've been left wondering if we shouldn't care more about the PDB files. :)

If you're wondering whether we should care more about them, barring any reason that they should not be included, why not just include them? Once again, I'm not seeing any reason whatsoever why they should not be.
« Last Edit: February 06, 2015, 11:13:55 pm by GetOutOfBox »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Debug symbols not loading for sfml-graphics-d.lib
« Reply #6 on: February 07, 2015, 12:49:17 am »
How is this a justification for not releasing the prebuilt ones? I'm wondering why PDB files are intentionally not included, forcing users to build them themselves. I'm understanding of any reason it somehow puts unnecessary burden on the dev team, but I'm not seeing one.
You didn't understand it then. The proper building/naming is not supported by our CMake script which is used to build all the library as such it can't be directly included/provided and modification is needed.
We as dev team have a lot of other stuff to do besides our real life. Having the debug symbols properly generated, named and installed just doesn't have a very high priority besides all the other work. Reading the previously linked article made me think whether we should add a higher priority.

If you really want to see the debug symbols being properly handled, you can go and figure out that changes in the CMake scripts needed and at best create a pull request. ;)

Again it's not that we're actively trying to not include them, but it needs some work and we haven't given it any priority yet.

As for git, doesn't it seem a little bit like pointless arguing of semantics here? We both know what I was referring too. The fact I said Git and not "Hosted on Github" is neither here nor there.
I mainly mentioned this, because a lot of people confuse Git and GitHub etc. and I find it personally bad when people think "GitHub = Git".
The secondary reason was to throw you a bit of your boat, since you come across rather heavy. :D
« Last Edit: February 07, 2015, 12:53:33 am by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Debug symbols not loading for sfml-graphics-d.lib
« Reply #7 on: February 07, 2015, 09:41:16 am »
I see a very good reason for not including them: they would double (or even triple) the size of SDKs, for just a tiny amount of users very capable of building SFML themselves.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Debug symbols not loading for sfml-graphics-d.lib
« Reply #8 on: February 07, 2015, 12:04:41 pm »
We don't have to include them in the SDK, but rather provide them as a separate download.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Debug symbols not loading for sfml-graphics-d.lib
« Reply #9 on: February 09, 2015, 01:55:02 am »
In all honesty I think the people who need the pdb files should be able to make them themselves, otherwise they probably dont have a good reason for needing them.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Debug symbols not loading for sfml-graphics-d.lib
« Reply #10 on: February 09, 2015, 02:21:52 am »
We could still make it easier by adjusting the CMake script.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/