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

VsCode Debugging #49

Closed
sskhokhar opened this issue Jan 22, 2021 · 0 comments
Closed

VsCode Debugging #49

sskhokhar opened this issue Jan 22, 2021 · 0 comments

Comments

@sskhokhar
Copy link

sskhokhar commented Jan 22, 2021

The debug process is not working with this template. Im using this project in lerna workspace but its not working
Can you please add a sample launch.json file?

Here is my current launch config.

      "type": "node",
      "request": "launch",
      "name": "Launc",
      "program": "${workspaceRoot}/node_modules/moleculer/bin/moleculer-runner.js",
      "args": [
        "${workspaceRoot}/packages/backend/services/**/**/*.service.ts",
        "--env"
      ],
      "sourceMaps": true,
      "trace": "all",
      "env": {
        "PORT": "3000"
      },
      "preLaunchTask": "npm: build - packages/backend",
      "cwd": "${workspaceRoot}",
      "outFiles": ["${workspaceRoot}/packages/backend/dist/**/**/*.js"]
    }

Here is my task file

	"version": "2.0.0",
	"tasks": [
		{
			"type": "npm",
			"script": "build",
			"path": "packages/backend/",
			"group": "build",
			"problemMatcher": [],
			"label": "npm: build - packages/backend",
			"detail": "tsc --build tsconfig.json && cp .env ./dist/.env "
		}
	]
}
@icebob icebob closed this as completed Dec 11, 2022
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

No branches or pull requests

2 participants