debugging problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I'm not sure what's changed in my settings, but when I debug, and there is an error, the line of code highlighted is not the line that called the error, but the line ABOVE the line that called the sub that triggered the error. (whew! what a sentence!
This makes it a real pain to go back to find where the error took place
I know it wasn't like this before...
Any suggestions
Thanks
ambe
 
Hi Amber,

I have seen this message before and I thought that one of the solutions was
to do a complete new build of your project again.

Cor
 
Hi Amber

It sounds like you may have somehow turned off the compile before run options which means that the code you are running is not the code in your code window (i.e. the debug symbols in your compiled exe no longer relate to the code in your project which is why the debugger is highlighting the wrong lines)

Go to Build->Configuration Manager and for the 'Debug' configuaration, ensure that the Build item is ticked for all the projects in your solution and then run again in debug mode to see if it resolves the issue

HTH
Gary
 
Back
Top