Debugging a Service
* 
The JavaScript Debugger (beta) is currently available in preview mode only and is not a verified feature in ThingWorx Platform 10.0.x releases.
To start debugging using the JavaScript Debugger, perform the following steps:
1. From Composer, click Modeling > Things.
2. Select a Thing from the list.
The General Information tab for the selected Thing appears.
3. Click the Services tab, and select the JavaScript service that you want to debug.
The code for the service appears in the script editor.
4. Click the gutter area to the left of the numbered column and add breakpoints to the code.
* 
When debugging a service on a Thing Template or Thing Shape, the system does not recognize the breakpoints defined on them. You may need to specify the breakpoints on the implemented Thing service that is selected. PTC recommends that you start the Thing and debug the service from there. For more information, see Thing Services and Breakpoints.
5. Select one of the following options to start debugging:
Under the Execute tab in the script tools pane, click Debug.
Click the Debug tab in the script tools pane, and click .
On the toolbar, click .
Debugging starts. You can monitor the process in the script editor. During debugging, the Debug tab is open in the script tools pane. After debugging, the Execute tab opens and shows the output.
* 
If you step into different service from the original service, the editor changes to display the code for the newly selected service and the header displays the entity and service that are now being inspected.
Was this helpful?