How do I debug the project in Visual Studio Code?
See original GitHub issueI’d like to be able to contribute to the project. In order to do that efficiently, I’d like to run the Amplify CLI in Visual Studio Code and debug the code by setting breakpoints. How does one do that?
At first, I just forked/cloned to build the project and do a basic run of the project from source. I tried to start with the suggested steps to build the project from the Contributing section of the README. However, these steps fail (see attached errors):
$ npm run setup-dev
yarn config set workspaces-experimental true
Amplify CLI npm run setup-dev errors.txt
I noticed that there is this note in the GraphQL transformer docs: “there are some debug configurations defined in .vscode/launch.json you can use Visual Studio code to add debug breakpoints to debug the code.” However, there is no launch.json file as noted.
At a bare minimum, it would be good to be able to build and run the project from source. And ideally, if there were a launch.json file to run in Visual Studio Code, that would be even better. How does the Amplify team debug the project? (It would be tough to imagine one could not debug the code and set breakpoints.)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)

Top Related StackOverflow Question
@chrisl777 @kstro21
If you want to debug in vs code, you can add the following configuration to your launch.json:
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-helpchannels for those types of questions.