Skip to content

chenjian-bzh/vscode-extensions

Repository files navigation

launch tools extension

the extension is a tool for starting project in development mode, and also you run debug nodejs process using the given configuration.

Getting Started

  1. click here to install the extension, or you can find it in vscode extensions tab, just search for launch-tool.

  2. make sure your current workspace or folder contains at least one target project.

  3. use shortcuts: "ctrl + shift + p" , and enter "launch", you will see three commands list below:

    • launch.dev: start web and node development.

    • launch.debug: start web process and node debug process for you, if thers is no launch.json, a new one will be created.

    • launch.createDebugConfiguration: create a debug configuration named launch.json in .vscode directory. if launch.json is already exist, this command will do nothing. The new configuration will be like this:

      ```json
      {
          "version": "0.2.0",
          "configurations": [
              {
                  "type": "node",
                  "request": "launch",
                  "name": "launch debug",
                  "env": {
                      "NODE_ENV": "dev",
                      "PORT": "3000",
                      "ROUTE_IP": "10.225.68.88"
                  },
                  "runtimeExecutable": "ts-node-dev",
                  "runtimeArgs": [
                      "--ignore-watch",
                      "typings/auto-generated"
                  ],
                  "args": [
                      "bootstrap.ts"
                  ],
                  "cwd": "${workspaceRoot}/packages/platform",
                  "restart": true,
                  "console": "integratedTerminal",
                  "internalConsoleOptions": "neverOpen"
              }
          ]
      }
      ```
      
  4. select a product like ecs or vod for web bootstraping.

Problem

vscode API do not support splitting terminal yet , so web and node process started by the extension will be in two seperated terminals. it may be inconvenient to some degree.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published