skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Server-Side JavaScript Debugging: Viewing the Contents of an Object

Journal Article · · ViewSource Online Magazine
OSTI ID:5906

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].

Research Organization:
Sandia National Lab. (SNL-NM), Albuquerque, NM (United States); Sandia National Lab. (SNL-CA), Livermore, CA (United States)
Sponsoring Organization:
US Department of Energy (US)
DOE Contract Number:
AC04-94AL85000
OSTI ID:
5906
Report Number(s):
SAND99-1006J; TRN: AH200115%%134
Journal Information:
ViewSource Online Magazine, Other Information: Submitted to ViewSource Online Magazine; PBD: 21 Apr 1999
Country of Publication:
United States
Language:
English