debugger: Fix issues with debugging scripts from package.json (cherry-pick #32995) (#33044)

gcp-cherry-pick-bot[bot] and Cole Miller created

Cherry-picked debugger: Fix issues with debugging scripts from
package.json (#32995)

- [x] Pass in cwd
- [x] Use the appropriate package manager
- [x] Don't mix up package.json and composer.json

Release Notes:

- debugger: Fixed wrong arguments being passed to the DAP when debugging
scripts from package.json.

Co-authored-by: Cole Miller <cole@zed.dev>

Change summary

0 files changed

Detailed changes