Blockland Forums > Modification Help

Need code debugger.

Pages: << < (4/4)

Uristqwerty:

Everything *should* be case-insensitive (case-sensitive string operations excluded, of course.), so capitalizing package shouldn't be an issue.

Headcrab Zombie:

function, package, and probably datablock declarations do need to be all lowercase. This can be shown simply by a few short entries in the console:

function test() {}
will work just fine, while
Function test() {}
will return a syntax error

Blocker Ctgr:

Look in the console, it will have ##'s around the error.

Uristqwerty:

Except sometimes it doesn't. Errors like missing or extra brackets or other misplaced keywords  tend to put the error markers further past where the error is, and in the case of an extra { near the start of a function, it can be _very_ far from the real problem.

KuriousGeorge:


--- Quote from: Uristqwerty on October 09, 2010, 07:41:42 PM ---Except sometimes it doesn't. Errors like missing or extra brackets or other misplaced keywords  tend to put the error markers further past where the error is, and in the case of an extra { near the start of a function, it can be _very_ far from the real problem.

--- End quote ---

Happens to me all the time. I don't trust error markers anymore.

Pages: << < (4/4)

Go to full version