Publications Details
Server-Side JavaScript Debugging: Viewing the Contents of an Object
Hampton, J.; Simons, R.
JavaScript allows the definition and use of large, complex objects. Unlike some other object-oriented languages, it also allows run-time modifications not only of the values of object components, but also of the very structure of the object itself. This feature is powerful and sometimes very convenient, but it can be difficult to keep track of the object's structure and values throughout program execution. What's needed is a simple way to view the current state of an object at any point during execution. There is a debug function that is included in the Netscape server-side JavaScript environment. The function outputs the value(s) of the expression given as the argument to the function in the JavaScript Application Manager's debug window [SSJS].