Skip to main content
GameDev.net gamedev.net
🔒 Locked

Debugging SDL with Visual Studio 2005

Started by MadCat13 Jan 4, 2008 at 9:38 PM 2 replies 1.5k views
Original Post
MadCat13
MadCat13
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
"Nothing is easy. Nothing good is free." - Triumph
SiCrane
SiCrane
Is the .pdb file for your project being generated?
MadCat13
MadCat13
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.
"Nothing is easy. Nothing good is free." - Triumph
MadCat13
MadCat13
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

"Nothing is easy. Nothing good is free." - Triumph

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.