Sign in to follow this  

Debugging SDL with Visual Studio 2005

This topic is 3629 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
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

This topic is 3629 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this