
The console window (the main debugging tool) It is very important to understand the difference between what is core and what is Acrobat specific, and this is just the kind of thing you'll learn by using the two references. It does not contain any information on the core language. This reference only contains information on the functions and properties specific to Acrobat. The second is the Acrobat JavaScript Reference, which contains a listing of all the Document Object Model functions and properties.

The reference will provide basic information on JavaScript keywords, syntax and usage. This is the programming language used to script Acrobat. The first one is a reference on Core JavaScript. After doing this a few times and skipping around in the reference, everything will become much clearer. If you're new to the topic, then you just want to compare the reference entry to the "thing" in the code. That's why you don't want to look too hard. In other words, they aren't much good unless you already know what you're doing. Reference entries usually provide very terse and incomplete information that assumes an overall knowledge of the topic. It's very easy to over-think or read too much into reference data. The trick to using any reference is to only look at the things that already make sense to you.
Js script debugger code#
If you think you've found a "thing" in the code that is the source of the problem, you open up the reference to the entry for that thing and see what it has to say. You can't read it from beginning to end to make sense out of it. The reference is where the details come from.Ī programming reference can be very cryptic to the novice. It's only important to have a sense of what's going on and a reference. In order to do debug, it is necessary to have some sense of these rules. But it is still a programming language, and thus has rules: Syntax rules, logic rules and general operational rules. Acrobat JavaScript is much easier to work with and much more forgiving than other programming languages. Programming languages by their nature follow very strict rules. It's about paying attention to the details and there is no substitute.

Isolating the real source of an error is the first and most important step in finding and fixing a problem-it's the Golden Rule of debug. Everything we'll discuss in this article is about developing the skills and tools to correctly implement this one concept. It is very easy with complex forms and code to be misled by surface behavior. More often than not, just narrowing down the real source of the error is enough to identify the specific issue and fix it.
Js script debugger software#
The name of the game in software debug is to isolate the issue.

The answer is to role up your sleeves and figure out what's wrong-something we call debugging. Judging from the Acrobat discussion forums, getting a script to work is one of the biggest problems around. Have you written or copied a script with high expectations of all the great things the script would do, only to find out that it doesn't work? Well, you have company.
