To see how to get the Debug menu (which is really just a floating window on the side, with some buttons and other items on it), see
Setting Up Development Environment on the wiki.
It's much easier when you use the Debug menu, then when you have to go through the load-crash-restart-load-crash... cycle.
About the error: the (5, 1) means that it's on line 5 (or near it - maybe a line or two above), character 1 (that's where the script engine figured out something was wrong).
From what I've seen on the forums here, this usually happens when people create a code block (the { and } define a code block), but there's no function declaration associated with it, or when you put a ; where you're not supposed to.
If you can't fix it, post a code snippet showing line 5 and it's surroundings - but try to post it so that it's not completely out of context (like an isolated line of code we cant be sure of how it fits in the whole), but something that people here can use to get an idea of what you're trying to do, so that they can help.