Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Debugger shows wrong next statement

Author  Topic 

skwerr sossij
Starting Member

1 Post

Posted - 2009-06-23 : 08:47:14
Hi
I'm debugging t-sql stored procs in visual studio. The next statement, shown by the yellow arrow in the left-hand margin, often shows the wrong line; I can tell because statements ahead of the yellow indicator have already been executed. Also, clicking on the margin to set a breakpoint will sometimes set the breakpoint at a line above or below the one I clicked on. Also, single-stepping sometimes steps through comments (I have a lot of them) or blank lines.

I've tried recompiling the SPs, and closing/re-adding the connection in VS.

I'm using SS2005 and VS2005.

Does anyone else have this problem? Any ideas?
   

- Advertisement -