This extensions helps developing Ewt application in VS Code.
Main features are:
- Ewt script debugger
- Ewt script grammar tokenizer
- Ewt script theme
The debugger connects to Ewt using a socket. It is based on Debug Adapter Protocol (DAP).
In order to debug an Ewt application through VS Code, please do following:
- Open Ewt application folder in VS Code
- Edit
config.xml
file in order to enabledev
mode and open a port for debugger socket.<?xml version="1.0" encoding="UTF-8"?> <config> <admin> <runMode>dev</runMode> <debuggerPort>8000</debuggerPort> <!-- option : adresse IP de bind --> <debuggerAddress>0.0.0.0</debuggerAddress> ... </admin> ...
- Save modifications and start application server. Just reset Ewt application if application server is already running.
- In VS Code, open pannel "Run and Debug" (Ctrl + Shift + D). The very first time, you'll have to create a launch configuration.
Click on
create a launch json file
- Adapt
launch.json
file as following{ "version": "0.2.0", "configurations": [ { "type": "mock", "request": "launch", "name": "Ewt debugger", "program": "Mon application", "stopOnEntry": true, "debugServer": 8000 } ] }
- Save modification. Now you should see a dropdown with label "Ewt debugger" in the panel
Click on the green arrow and start debugger.