adobe / adobe/aio-cli-plugin-runtime

Unable to debug runtime action from vscode because of invalid .vscode/launch.json

Aperta
#308 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
21
Fork
33
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Unable to debug runtime action from vscode because of invalid '.vscode/launch.json' (similar to #244)

The generated .vscode/launch.json look like this (**note the wrong envFile property**).
```
{
"configurations": [
{
"type": "pwa-node",
"name": "Action:wknd-spa-react-0.1.0/ssr",
"request": "launch",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/wskdebug",
"envFile": "${workspaceFolder}//Users/johndoe/Downloads/aem-guides-wknd-spa.react.ssr/ui.frontend/dist/application/.env.local",
"timeout": 30000,
"killBehavior": "polite",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/code",
"outputCapture": "std",
"attachSimplePort": 0,
"runtimeArgs": [
"wknd-spa-react-0.1.0/ssr",
"${workspaceFolder}/actions/ssr/index.js",
"-v",
"--disable-concurrency",
"--kind",
"nodejs:10"
]
}
],
"compounds": [
{
"name": "Actions",
"configurations": [
"Action:wknd-spa-react-0.1.0/ssr"
]
}
]
}
```

**To Reproduce**
Steps to reproduce the behavior:
1. Create an AEM Project using [AEM Project Archetype](https://github.com/adobe/aem-project-archetype) with SSR enabled
2. Follow the instructions in `ui.frontend/README.md` to debug AEM SSR via local Docker image of OpenWhisk
3. Run `npm run build-with-ssr`
4. Run `npm run start-ssr-ioruntime`
5. Attach the debugger via provided VS Code Launch configuration and observe the Debug Console

**Expected behavior**
Debugger attaches without any errors.

**Screenshots**
Screenshot 2023-06-16 at 14 08 04

**Desktop (please complete the following information):**
- OS: macOS Ventura 13.4

**Additional context**
Add any other context about the problem here.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il .vscode/launch.json generato e le istruzioni per il debug SSR in ui.frontend/README.md. Riproduci il problema con npm run build-with-ssr e npm run start-ssr-ioruntime, quindi traccia il modo in cui viene generata la configurazione di avvio di VS Code. Il lavoro è completato quando il percorso envFile generato è valido e il debugger si connette senza errori.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.