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

Author Topic: Debugging SFML projects  (Read 3355 times)

0 Members and 1 Guest are viewing this topic.

BeautiCode

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Debugging SFML projects
« on: October 11, 2014, 11:10:36 pm »
I need help, I keep trying to debug my project and it never works.
Everytime I use SFML I just always compile as release and if theres a big i just keep scanning through the code and opening the program up again.
But I got tired and decided to try debugging again, I linked
Code: [Select]
sfml-graphics-d
sfml-window-d
sfml-system-d
Normally I link the above, all without a D but I removed those and added ones with a D.
I added the dll files to the debug folder as-well.
But when I add a breakpoint nothing happens, the program never pauses or anything.
Please help, it still acts like a release even though i changed it to debug at the top.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Debugging SFML projects
« Reply #1 on: October 11, 2014, 11:24:59 pm »
Well how do you start your debugger? ::)

If you use Code::Blocks for example you can't just click the green run button, but you need to explicitly start the debugging process.

I'm not sure if you do that, but make sure to link the debug libs (-d suffix) only in debug mode and the ones without suffix only in release mode.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/