Javascript debugging, breakpoint in first line issuehttp://forums.asp.net/t/1254815.aspx/1?Javascript+debugging+breakpoint+in+first+line+issueMon, 17 Nov 2008 10:49:26 -050012548152329391http://forums.asp.net/p/1254815/2329391.aspx/1?Javascript+debugging+breakpoint+in+first+line+issueJavascript debugging, breakpoint in first line issue <p>Are there still no news on this bug already posted here?</p> <p><a href="http://forums.asp.net/t/1082063.aspx">http://forums.asp.net/t/1082063.aspx</a></p> <p>Do you guys realise that the visual studio has a reputation of beeing completely useless for javascript development??</p> <p>Please fix this bug, and for us it is completely uninteresting if you have to fix in in the vs code or in the jscript engine.</p> <p>STOP to search for excuses ==&gt; FIX IT!</p> <p>&nbsp;</p> 2008-04-30T08:49:44-04:002331077http://forums.asp.net/p/1254815/2331077.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue <p>just put debugger; wher you want it to break and it will</p> <p>that is what I do</p> <p>&nbsp;</p> 2008-04-30T23:46:56-04:002331185http://forums.asp.net/p/1254815/2331185.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue <p>I cannot find anyway to debug javascript in my VS2008 too.&nbsp; When press F5, VS2008 ignore all javascript breakpoints!&nbsp; Is it a bug?</p> <p>In the previous version&nbsp; of VS, there is a dropdownlist (you can select debug or release).&nbsp; However, I cannot find this feature in my VS2008.&nbsp; How can I enable it.</p> 2008-05-01T02:13:44-04:002331331http://forums.asp.net/p/1254815/2331331.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue Tools - &gt; Options -&gt; Enable Advanced Configuration (Something like this, don't remember exactly) &quot;petersgyoung&quot; wrote in message news:2331185@forums.asp.net... &gt;I cannot find anyway to debug javascript in my VS2008 too. When press F5, &gt;VS2008 ignore all javascript breakpoints! Is it a bug? &gt; &gt; In the previous version of VS, there is a dropdownlist (you can select &gt; debug or release). However, I cannot find this feature in my VS2008. How &gt; can I enable it. &gt; 2008-05-01T05:10:13-04:002331467http://forums.asp.net/p/1254815/2331467.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue <p>Ok obviously it's not enough to write a link to the original post, because nobody reads it.</p> <p>So here the description of the real Problem.</p> <p>VS isn't able to put a breakpoint in the first line of an <b>anonymous function</b>.</p> <p>&nbsp;<br> Example:</p> <pre class="prettyprint">var myfunction = function(myParam) { myParam.myMethod(); };</pre> <p>&nbsp;&nbsp; <br> You will <b>not</b> be able to debug the line, where myMethod is called, because it is the first line<br> of an anonymous function. The only way to workaround this problem is to put in a dummy line<br> like var debug = 1; or something.</p> <p>Jeff King allready analyzed the problem in the original post, and discovered that it is within the jscript.dll</p> <p>He also promised that this problem will be fixed properly, <b>this post is nearly one year old now</b>!!<br> <br> So, are there any news on that? Is someone looking for the problem, or will the web 2.0 developers be ignored again?&nbsp;</p> <p>&nbsp;</p> 2008-05-01T07:33:13-04:002331662http://forums.asp.net/p/1254815/2331662.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue <p>var myfunction = function(myParam) {</p> <p>debugger;<br> <b id="2">2&nbsp;&nbsp;&nbsp; </b>&nbsp;&nbsp; myParam.myMethod();<br> <b id="3">3&nbsp;&nbsp;&nbsp; </b>};<br> </p> <p>debugger fires the debugger at that line give it a try forget the breakpoint</p> 2008-05-01T10:32:35-04:002331675http://forums.asp.net/p/1254815/2331675.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue <p>as Is said, with a dummy line in the first line it works, the problem is that you cannot set the breakpoint in the first line.</p> <p>It doesn't matter if you put var blah = 1; or &quot;debugger&quot; in the first line.</p> <p>But thats no solution, thats garbage! </p> <p>This is a known Bug, and it needs to be fixed, so pls keep your weird so called workarounds, they're not practical&nbsp;</p> 2008-05-01T10:42:44-04:002749971http://forums.asp.net/p/1254815/2749971.aspx/1?Re+Javascript+debugging+breakpoint+in+first+line+issueRe: Javascript debugging, breakpoint in first line issue <p>another year is nearly over. a lot of things have changed. just this embarrassing bug is still not fixed.</p> <p>hey microsoft guys, if you don't know how to do it, why don't you ask some people from mozilla, they might help you :-) <br> </p> 2008-11-17T10:49:26-05:00