javascript debugger

I have some code that works with firefox, but not ie

I have the ms script debugger, but it comes up and won't display anything, it looks like it is having trouble opening.

Any suggestions?  It needs to be some sort of ie debugger since that is the only browser I have trouble with.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

How much code is it?  We might be able to help if you post the bit that doesn't work?

Stacy SpearPresident/Principal ConsultantCommented:
I use the following to get errors out of IE. Not perfect, but much better than the Script Debugger IMHO. Script Debugger can be a bear but it's url is 

This first line must be at the top of the script. The function can be anywhere in JS. I normally just include them from a separate file. The result is that the error popup has the line number and message of the error.

onerror = handleErrors;
function handleErrors(errorMessage, url, line) {
  msg = "There was an error on this page.\n\n";
  msg += "An internal programming error may keep\n";
  msg += "this page from displaying properly.\n";
  msg += "Click OK to continue.\n\n";
  msg += "Error message: " + errorMessage + "\n";
  msg += "URL: " + url + "\n";
  msg += "Line #: " + line;
  return true;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jackjohnson44Author Commented:
thanks, is there any way to figure out what line number something is?
I know the javascript line errors that ie used to give didn't really correspond to anything good.

Would you suggest just viewing the source in a text editor and using their line numbers?
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Stacy SpearPresident/Principal ConsultantCommented:
It uses the line numbering from the entire file. What are you editing the file with?
jackjohnson44Author Commented:
usually edit plus

It is mostly php, so my line numbers don't match with the html line numbers in any way.
Stacy SpearPresident/Principal ConsultantCommented:

Same here with PHP. Looking at where the errors are on the generated page will provide clues as to where they are in your PHP code. I use Eclipse with the PHP addon. Pretty good with highlighting and more. It also is good for debugging as most errors are shown as such in code.
jackjohnson44Author Commented:
I have never heard of that, is it something I should use?

I pretty much hand code from scratch, I don't use any sort of generator at all.

Edit plus pretty much only highlights syntax, it is a way better version of notepad.

It doesn't really do too much other than that though.
Stacy SpearPresident/Principal ConsultantCommented:
PHP Eclipse does have intellisense. Eclipse is the most widely used editor around for Java, HTML, and perhaps soon PHP.

It is a hand coder. Although it is almost a full IDE, it isn't a WYSIWYG editor. I like it because as soon as I save, I can see the results in the browser on the IDE. So correcting errors goes by very fast. Before that I used PHP Designer 2005. Also freeware, it is pretty good too, but has some quircks. Overall, I think that Eclipse is better than all. I haven't used ZEND, but I hear complaints about it. Most of those are that it is a Java app, but so is Eclipse :)
jackjohnson44Author Commented:
Stacy SpearPresident/Principal ConsultantCommented:
Here is the link to the PHP Eclipse plugin
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.