boostercloud / booster

Booster Framework
https://www.boosterframework.com
Apache License 2.0
417 stars 87 forks source link

Add a default launch.json file in the default template to ease VSCode debugging #1437

Open javiertoledo opened 1 year ago

javiertoledo commented 1 year ago

Feature Request

Add a .vscode/launch.json file to the default project template to ease out-of-the-box debugging in VSCode

This is the configuration we generally use to start a debug session:

{
  "version": "0.2.0",
  "configurations": [
    // Runs npx boost -e local
    {
      "command": "npm run build && npx boost start -e local",
      "name": "Start Debug Server",
      "request": "launch",
      "type": "node-terminal",
      "cwd": "${workspaceFolder}"
    },
  ]
}
Virajjai commented 3 months ago

Hello, @javiertoledo can i work on this. And could you explain me a bit more about this plz.

javiertoledo commented 3 months ago

Sure @Virajjai.

Here you can find the project template that Booster uses to initialize new projects: https://github.com/boostercloud/booster/tree/main/packages/cli/src/templates/project

The goal of this task is to add a default .vscode/launch.json file like the one suggested in the issue description. This way, new projects generated will include the default launch file, so Booster apps will be automatically runnable with the VSCode debugger :-)

I'll assign you the task, thanks!