Jump to content
  • Advertisement
Sign in to follow this  
MadCat13

Debugging SDL with Visual Studio 2005

This topic is 3845 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, so I'm using Visual Studio 2005 standard edition under Win XP SP2. I'm having no problems getting a program to compile and run, but whenever I set a breakpoint so I can step through my code, I get the "The breakpoint will not currently be hit. Invalid file line." notice. I know this is supposed to be due to the difference between the CR/LF used by windows and the LF only used by unix, but I've not been able to fix the problem. I tried building SDL myself. I used multiple conversion utilities (like Cleantxt and unix2dos) to go through and check the files for problems. I even opened the project in VS2005 and modified the "Advanced Save Options" for each and every file that is used, but I'm still getting the invalid file line error. Any ideas? Thanks, MadCat13

Share this post


Link to post
Share on other sites
Advertisement
Yeah, it's generating the .pdb file. I've went through and deleted the old .pdb, intellisense and other extraneous files by hand before I rebuilt, so it's up to date.

Share this post


Link to post
Share on other sites
Well, I have the debugger working now. I'm not sure what the problem was exactly, but it wasn't with SDL or my test code.

I reinstalled Visual Studio, made a new project and just copied over my code into it. Now it works and debugs fine.

Oh well, as long as it works. :P

MadCat13

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!