ThingWorx Model Definition in Composer > Modeling > JavaScript Debugger > Call Stack in the JavaScript Debugger
Call Stack in the JavaScript Debugger
* 
The JavaScript Debugger (beta) is currently available in preview mode only and is not a verified feature in ThingWorx Platform 10.0.x releases.
The Call Stack section shows a chronological list of service calls made during debugging. The first item in the call stack shows where the current service being executed is paused for inspection. Each item that follows represents the line of code that was called to get to the item above it. If you move from one service to another, the name of that service appears first in the stack array list. Similarly, if you call a local function or an anonymous inner function within a service, the service name will appear in the stack array. The last item listed in the call stack is the starting location of the debugger.
Each call stack contains the following:
— Shows which stack is currently visible on the script editor and its corresponding variable section.
Service name link— For example, ThingShape_Addition. When clicked, the script editor updates to show that service and the Variables section updates accordingly.
Entity label— For example, DebugTest_THING. Allows you to view or edit the entity.
Line number— For example, (2). Shows the line number at which the call stack was last referenced.
Line text— For example, let result = me.ThingShape_Addition({. Shows the text from the line of code where the call stack was last referenced.
* 
When you click on a frame within the call stack, the Scope and Watch tabs in the Variables section are updated to reflect the values of that frame. The code associated with that frame also appears in the script editor and the line at which the execution is currently paused is highlighted.
Was this helpful?