i put some break points in js file,(i enabled js on IE browser) but if i start with F5 then its not hitting the js file,
then i have added debugger then its asking me to select the debugger but, this time error says already a debugger is attached with this solution(but i have selected new debugger)
if i do "Start Without Compile" then with debugger hit the breakpoints but this time its not hitting code behind(aspx.cs), why this problema and how to resolve this issue.
just now i found one thing, im doing code based on gridview if i comment this code then break point hits else its not hit even the first line of the function.
winseealn@ho...
Participant
840 Points
1042 Posts
javascript not hit breakpoint
May 10, 2012 12:56 PM|LINK
hi all,
i have an aspx, aspx.cs and js files
i put some break points in js file,(i enabled js on IE browser) but if i start with F5 then its not hitting the js file,
then i have added debugger then its asking me to select the debugger but, this time error says already a debugger is attached with this solution(but i have selected new debugger)
if i do "Start Without Compile" then with debugger hit the breakpoints but this time its not hitting code behind(aspx.cs), why this problema and how to resolve this issue.
winseealn@ho...
Participant
840 Points
1042 Posts
Re: javascript not hit breakpoint
May 10, 2012 05:03 PM|LINK
experts any solution is there?
A1ien51
All-Star
29935 Points
5821 Posts
Re: javascript not hit breakpoint
May 10, 2012 11:13 PM|LINK
JavaScript does not execute in your IDE, set break points in the JavaScript in IEs console! In IE8+ hit F12
Eric
umamahesh202...
Member
164 Points
74 Posts
Re: javascript not hit breakpoint
May 11, 2012 04:38 AM|LINK
You can write debugger with in your code then run the application when event fires it will automatically goto this debuuger point.
Here i am giving sample code for you.
function allowPositiveNumber(e) { debugger var charCode = (e.which) ? e.which : event.keyCode; if (charCode < 48 || charCode > 57) { return false; } return true; }winseealn@ho...
Participant
840 Points
1042 Posts
Re: javascript not hit breakpoint
May 11, 2012 06:42 AM|LINK
i already put debugger but no use.
just now i found one thing, im doing code based on gridview if i comment this code then break point hits else its not hit even the first line of the function.
sudheeshwarr...
Member
72 Points
48 Posts
Re: javascript not hit breakpoint
May 11, 2012 06:46 AM|LINK
I have faced most of the Javascript debugger issues with Visualstudio because I didn't clear my cache., and the latest Javascript file was not loaded.
Clear all browser cache and try the debugging.
Thanks,
htttp://atomviews.com
Keep it Simple...
One stop for all reviews | AtomViews
sudheeshwarr...
Member
72 Points
48 Posts
Re: javascript not hit breakpoint
May 11, 2012 06:46 AM|LINK
Try clearing the browser cache, and then run it from Visual studio. That helped me a lot of times on such issues.
Thanks,
htttp://atomviews.com
Keep it Simple...
One stop for all reviews | AtomViews