SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a javascript thats breaking. Now Is there a way i can call the function from content editor web part and debug to see where the hick up is?

share|improve this question

closed as not a real question by Kit Menke May 6 '11 at 14:02

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Mina, I don't think your question can be answered (as Marc mentioned below). Can you add some more specific information to help us solve your issue? – Kit Menke Apr 29 '11 at 14:55
up vote 1 down vote accepted

Use the Developer Tools available in Internet Explorer, enable Debugging and it should break when the error comes up.

share|improve this answer
+1, you can also use Firebug in FireFox. – Abe Miessler Apr 28 '11 at 23:25
okay, i added debugger keyword in the cewp where it calls the function. also, have the developer tools open. i refresh the page and i can see error warning on the ie status bar. but developer tool is doing nothing. – Roxanne Apr 28 '11 at 23:46
@mina you will need to goto the script tab and start debugging. – idiom Apr 29 '11 at 2:40

There are some skills around debugging JavaScript that you'll need to learn. Firebug and the IE Developer Tools (or equivalent in Chrome, etc.) are the tools, but you'll need to learn how to use them well. There's not really an "answer" to your question.

Generally, you'll have syntax errors like missing commas, brackets, parentheses, or semicolons. That's always the first thing I look for in my scripts.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.