-
Notifications
You must be signed in to change notification settings - Fork 282
Description
🚀 Feature Request
Support launching React Native debug sessions when the project is executed through a wrapper command (e.g. mise exec).
Reproducible Steps
- Configure the project to run commands via
mise exec. - In vscode, press F5 to start a React Native debug session.
Expected Behavior
The application should launch normally via mise and yarn, just as it does when running the same command in a terminal.
Actual Behavior
The debug session fails with the following error in the Debug Console:
An error occurred while launching the application.
'mise exec -- yarn exec -- react-native run-android --no-packager'
An error occurred while executing the command.:
spawn mise exec -- yarn exec -- react-native ENOENT (error code 303)
Root Cause
The React Native VS Code extension appears to treat the entire command string
mise exec -- yarn exec -- react-native ... as a single executable.
As a result, process spawning fails with ENOENT, because only mise is the actual executable and the rest should be treated as arguments.
Proposed Improvement
Allow the debug configuration to specify:
- a command wrapper (e.g.
mise exec --) - or a clear separation between executable and arguments
so that React Native projects using tools like mise, asdf, or other environment managers can be debugged without workarounds.
