Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create launch.json #1445

Closed

Conversation

username-of-rehman
Copy link
Contributor

@username-of-rehman username-of-rehman commented Sep 30, 2023

Add .vscode/launch.json for debugging in VSCode

Description

The need for easing out-of-the-box debugging in VSCode by providing a default .vscode/launch.json configuration that enables a seamless debugging experience when using VSCode.

Changes

  • addition of a .vscode/launch.json file with a debug configuration
  • This configuration is designed to initiate a debug server, optimizing the development workflow.

Checks

  • Project Builds
  • Project passes tests and checks
  • Updated documentation accordingly

Additional information

This PR addresses issue #1437

Add .vscode/launch.json for debugging in VSCode
@ghost
Copy link

ghost commented Sep 30, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@javiertoledo
Copy link
Member

javiertoledo commented Oct 1, 2023

Hi @username-of-rehman, thanks for addressing issue #1437. You added this file to the project root, but for Booster to generate a launch file for all new projects, you'd need to add this file to the Booster template directory, which is currently located in the route packages/cli/src/templates/project.

Please take a look at the files in that directory; as you can see, you'll also need to wrap the file in a TypeScript file and tweak the code in packages/cli/src/services/project-initializer.ts to load and render it.

Once the template is there and the code loads and renders it, you may also need to tweak the project's tests, which won't expect the new file to be generated and might start failing. Check out the Contributing guide for more detailed instructions on how to run the tests.

Thanks, and let me know if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants