cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Improvement to service / script code editor

Improvement to service / script code editor

Services are harder to debug due to lack of debugger to step through code.

 

This a standard component for programming / development in any IDE. Having this feature would reduce complexity of debugging code and make development faster.

 

 

 

An alternative solution to this problem is integrating composer with VS code so that editing a service opens a VS code window. Similar to how Unity is integrated with Visual studio. In Unity all UI development is done in Unity and writing code is done in visual studio.

 

This would be a more holistic approach that brings the best of both worlds in combining composer with a standard IDE to get a more robust development experience.

4 Comments
berkob
8-Gravel

Agreed. In addition, better linting would dramatically reduce bugs.

Radu
15-Moonstone

It is currently possible to use Monaco Editor to augment VSCode in your Thingworx coding environment.

 

Install TamperMonkey browser extension.

Install Monaco Editor (https://github.com/ptc-iot-sharing/MonacoEditorTWX)

Add the following script to TamperMonkey

 

// ==UserScript==
// @Name         Load Monaco Remote
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Loads the monaco editor in the new composer
// @author       You
// @match        */Thingworx/Composer/*
// @grant        none
// ==/UserScript==
var script = document.createElement("script");
script.src="/Thingworx/Common/extensions/MonacoScriptEditor/ui/MonacoScriptEditor/newComposer.bundle.js";
script.charset = "UTF-8";
document.getElementsByTagName("head")[0].appendChild(script);

 

cbaldwin
13-Aquamarine
Status changed to: Under Consideration

We have some work we are evaluating in this area.

olivierlp
Community Manager
Status changed to: Under Consideration

A design time environment is under consideration for IDE integration