You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SWRC creates the sourcemap for js/ts but javascript files currently can only be debugged from DIST folder, TS and yaml files can be debugged from src folder
The solution
Allow debugging for yaml ts/js workflows within the source folder.
Allow debugging for js ts plugins in plugin folder
Allow debugging for datasources
Allow debugging for eventsources
Developer will need to set **GS_TRANSPILE** to _**true**_ in ENV variable
Enabling the transpiling will allow the developer to debug in visual studio
---- For a new project ----
Developer should work by default because .env have GS_TRANSPILE set to true by create cli refer #907
---- For Debugger setup in existing project ----
To make sourcemap of ts workflows update gs project template .swcrc file and add a line "sourceMaps": true for debugging typescript files
Make an env file and set GS_TRANSPILE=true for enabling transpiling of yaml to js with sourcemap
create a file in .vscode folder "launch.json" filename
Currently we have no debugger for v2.
NOTE
SWRC creates the sourcemap for js/ts but javascript files currently can only be debugged from DIST folder, TS and yaml files can be debugged from src folder
The solution
Developer will need to set
**GS_TRANSPILE**
to_**true**_
in ENV variableEnabling the transpiling will allow the developer to debug in visual studio
---- For a new project ----
Developer should work by default because
.env
haveGS_TRANSPILE
set totrue
by create cli refer #907---- For Debugger setup in existing project ----
To make sourcemap of ts workflows update gs project template .swcrc file and add a line
"sourceMaps": true
for debugging typescript filesMake an env file and set GS_TRANSPILE=true for enabling transpiling of yaml to js with sourcemap
create a file in .vscode folder "launch.json" filename
"debug.allowBreakpointsEverywhere": true set this in settings.json of .vscode folder
Change build command
Change build command in package.json
-----Debugger setup-----
The text was updated successfully, but these errors were encountered: