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

Introduce Debug Task #5

Closed
FlorianRappl opened this issue Jul 6, 2020 · 3 comments
Closed

Introduce Debug Task #5

FlorianRappl opened this issue Jul 6, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@FlorianRappl
Copy link
Contributor

FlorianRappl commented Jul 6, 2020

We should introduce some VS Code tasks for debugging Piral instances or pilets.

It is yet unclear if we can use the same for piral-cli-parcel and piral-cli-webpack. Maybe distinguish for now?

https://code.visualstudio.com/api/extension-guides/debugger-extension

@FlorianRappl FlorianRappl added the enhancement New feature or request label Jul 6, 2020
@FlorianRappl FlorianRappl added this to the 0.1.0 milestone Jul 6, 2020
@FlorianRappl FlorianRappl modified the milestones: 0.1.0, 0.2.0 Sep 28, 2020
@FlorianRappl FlorianRappl self-assigned this Oct 2, 2020
@FlorianRappl
Copy link
Contributor Author

I'd take this one.

@FlorianRappl
Copy link
Contributor Author

launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-msedge",
      "request": "launch",
      "name": "webdebug",
      "url": "http://localhost:1234",
      "webRoot": "${workspaceFolder}",
      "runtimeExecutable": "stable",
      "runtimeArgs": ["--headless"]
    }
  ],
  "compounds": [
    {
      "name": "Launch Piral Instance",
      "configurations": ["webdebug"],
      "stopAll": true,
      "preLaunchTask": "npm start"
    }
  ]
}

and the tasks.json:

{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "npm",
      "script": "start",
      "label": "npm start",
      "isBackground": true,
      "problemMatcher": {
        "owner": "webpack",
        "severity": "error",
        "fileLocation": "absolute",
        "pattern": [
          {
            "regexp": "ERROR in (.*)",
            "file": 1
          },
          {
            "regexp": "\\((\\d+),(\\d+)\\):(.*)",
            "line": 1,
            "column": 2,
            "message": 3
          }
        ],
        "background": {
          "activeOnStart": true,
          "beginsPattern": "Running",
          "endsPattern": "compiled successfully"
        }
      },
      "options": {
        "cwd": "${workspaceFolder}"
      },
      "dependsOn": []
    }
  ]
}

@FlorianRappl FlorianRappl modified the milestones: 0.2, 0.3 Apr 21, 2022
@FlorianRappl
Copy link
Contributor Author

Part of 0.3.

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

No branches or pull requests

2 participants