{"id":4475,"date":"2014-03-30T11:23:52","date_gmt":"2014-03-30T11:23:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/breakpoints-dont-match-code-lines-collection-of-common-programming-errors\/"},"modified":"2014-03-30T11:23:52","modified_gmt":"2014-03-30T11:23:52","slug":"breakpoints-dont-match-code-lines-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/breakpoints-dont-match-code-lines-collection-of-common-programming-errors\/","title":{"rendered":"Breakpoints Don&#39;t Match Code Lines!-Collection of common programming errors"},"content":{"rendered":"<p>There seems to be a breakpoint glitch in Visual C# 2008 Express in which, seemingly randomly, when a breakpoint is set and the code is executed, the breakpoint&#8217;s red highlight only affects some of the line. The application hits the breakpoint when it shouldn&#8217;t be, and on top of that, I can add breakpoints into lines of code where comments exist. In fact, when I clicked line 204 to add a breakpoint (below), it flickered but then landed at 205 where there&#8217;s a comment. \u00a0 <img decoding=\"async\" src=\"http:\/\/i36.tinypic.com\/6gix61.jpg\" \/><\/p>\n<p>So uh, how can I fix this? Restarting my system seemed to work for a few minutes. Restarting VS doesn&#8217;t do anything to help.<\/p>\n<p>(PS. When I hover the &#8220;settings&#8221; variable after the line is executed while stepping through my code, it says that it remains null even though it&#8217;s obviously not at that location, because eventually when the app throws an exception, it highlights a commented line in green and says that object of type Textbox cannot be referenced once it is disposed!)<\/p>\n<p>Does Microsoft put extra bugs in the Express editions just for kicks? (like making Express users re-download the whole Studio just to get SP1 installed&#8230;?) &#8230; okay, so that&#8217;s a joke of a question, but I&#8217;m starting to consider if there&#8217;s any karma to that thought.<\/p>\n<p>Help?<\/p>\n<p>-Matt<\/p>\n<p>TEMPORARY SOLUTION FOUND: If I manually delete the &#8220;obj&#8221; and &#8220;bin&#8221; folders (after quitting Visual C#) then it is forced to re-build from scratch after which it seems to work better. It would appear that it wasn&#8217;t even compiling my updated code. Weird? (I&#8217;m using default compile\/build settings.) Any better solution to this?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There seems to be a breakpoint glitch in Visual C# 2008 Express in which, seemingly randomly, when a breakpoint is set and the code is executed, the breakpoint&#8217;s red highlight only affects some of the line. The application hits the breakpoint when it shouldn&#8217;t be, and on top of that, I can add breakpoints into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4475","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4475"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4475\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}