Assuming you're using IE to debug, you need to do a couple of things. In the
Tools|Internet Options|Advanced tab, you need to enable script debugging.
This will cause IE to break when an error occurs. You can also add break
points to your JavaScript code, by adding the statement "debugger;" on a
line by itself. The script will break at any of these points.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"Angel" <An***@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com...
Is there any way to debug a javascript file that I included in my ASP.net
project. or some reason when I call a javascript function in the file from
my
ASP.NET code I get an error message. now if i strip the entire code or the
file and put just an alert the code obviously works. So there is an error
somewhere in the javascript code. i do not know where! is there anyway to
compile the javascript file to see if there are any errors in compilation?
thanks in advance