Olá, com o launch.json é possível criar vários ambientes para conexão de degub.
Abaixo segue um exemplo de launch.json (07/2022):
{
"version": "0.2.0",
"configurations": [
{
"type": "totvs_language_debug",
"request": "launch",
"name": "Smart Client 27 Debug",
"program": "${command:AskForProgramName}",
"smartclientBin": "C:/TOTVS/R27/smartclient/smartclient.exe",
"cwb": "${workspaceFolder}",
"isMultiSession": true,
"enableTableSync": true,
"enableMultiThread": true
},
{
"type": "totvs_language_debug",
"request": "launch",
"name": "Smart Client 33 Debug",
"program": "${command:AskForProgramName}",
"smartclientBin": "C:/TOTVS/TOTVS_R33/tec/smartclient/smartclient.exe",
"cwb": "${workspaceFolder}",
"isMultiSession": true,
"enableTableSync": true,
"enableMultiThread": true
},
{
"name": "debug chrome po ui",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200/#",
"webRoot": "${workspaceFolder}/taf-thf/",
"sourceMapPathOverrides": {
"webpack:/": "${webRoot}/",
"/./": "${webRoot}/",
"/src/": "${webRoot}/",
"/": "",
"/./~/": "${webRoot}/node_modules/"
}
}
],
"lastPrograms": [
{
"args": [],
"label": "sigataf",
"description": ""
},
{
"args": [],
"label": "xxx",
"description": ""
}
],
"lastProgramExecuted": "xxx",
"lastProgramArgumens": []
}