Find the error in java script

Posted by Rajesh081725 under Error and Solution on 10/9/2012 | Points: 10 | Views : 1177 | Status : [Member] | Replies : 2

Hai,

How to find the error in java script and then html using asp.net because i have to type all coding but running this program error page is display.

how to compilte the java script and hrml

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.



Responses

Posted by: Kanje_Ravi on: 10/9/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Rajesh,

here are the approaches for debugging javascript code.


1. using Keyword debugger you can find out errors or variable values in javascript easily.
ex:: call this function in your script block and check

function Testdebugger() {
debugger;
var a = 1, b = 2;
a = a + b;
}

2. Enabling script debugging in Internet Explorer

some times debugger keyword wont work in visual studio,in such cases enable script debugging in internet explorer

how to enable script debugging in internet explorer?

step1:Go to IE -->internet options-->Advanced-->

in advanced option you will get so many sections in that go to browsing and uncheck script debugging(internet explorer)




Thanks & Regards,
Ravindra M
(Success Always Depends on Dedication & Commitment)

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 10/29/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

ofcourse IE only debugger suitable
then mozila and chrome press f12 key and fire bug also using console.log(yourfield) also


Mark as Answer if its helpful to you

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response