adobe / adobe/aio-cli

debugging plain js is not hitting breakpoints

Open
#726 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
95
Forks
45
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour

Can debug in vscode and hit breakpoints in js actions

### Actual Behaviour

cannot

This needs to be documented, all the steps.
.vscode/launch.json needs to be included in app template
webpack-config.js should also be part of template

#### Environment Info
```
System:
OS: macOS 15.3
CPU: (10) arm64 Apple M1 Max
Memory: 698.20 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.4 - ~/.nvm/versions/node/v18.20.4/bin/node
Yarn: 1.22.19 - ~/.bun/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v18.20.4/bin/npm
Virtualization:
Docker: 20.10.17 - /usr/local/bin/docker
npmGlobalPackages:
@adobe/aio-cli: 10.3.2
```
#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Research direction

Start by locating the app template and the referenced .vscode/launch.json and webpack-config.js files, then review how plain JavaScript actions are launched in VS Code. Document all debugging steps and ensure both files are included in the app template; done means breakpoints can be hit and the process is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, vscode, webpack
Domain
cli, developer-experience, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.