Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

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