![]() |
|
|
|
#1 |
|
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 =?Utf-8?B?QW5nZWw=?= |
|
|
|
|
#2 |
|
Posts: n/a
|
Check out this article:
http://www.code101.com/Code101/Displ...le.aspx?cid=67 A simple way, which might not be sufficient for all cases, is to use FireFox and type "javascript:" in the address bar, which brings up nice details about errors (better than IEs). Of course that's assuming ur javascript works in firefox. Karl -- MY ASP.Net tutorials http://www.openmymind.net/ "Angel" <> wrote in message news:11B7EF76-4F82-4801-825F-... > 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 Karl Seguin |
|
|
|
#3 |
|
Posts: n/a
|
if you use firefox, turn on the javascript console, it will list the line
number of the error. -- bruce (sqlwork.com) "Angel" <> wrote in message news:11B7EF76-4F82-4801-825F-... | 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 bruce barker |
|
|
|
#4 |
|
Posts: n/a
|
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" <> wrote in message news:11B7EF76-4F82-4801-825F-... > 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 Kevin Spencer |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| javascript relative path to load xml file | torontodesi | Software | 2 | 02-26-2009 01:13 PM |
| SONY DVD RW DW-G120A SOMETIMES FAILS...... | atlantic965 | DVD Video | 0 | 06-18-2006 10:36 PM |
| problems backing up dvds | Lawrence Traub | DVD Video | 11 | 09-27-2005 07:34 PM |
| Re: Ripping DVDs. Please answer the attached question. - Question.txt | Stan Brown | DVD Video | 19 | 02-09-2005 11:19 PM |
| Burn process failed - help! Log file posted for help troubleshooting | Michael Mason | DVD Video | 1 | 08-16-2004 09:24 PM |