How to develop the project in VSCode

Hi i am having trouble setting up the Debugger for Chrome extension in vscode.
If someone has faced this problem before please post your launch.json file.

Thanks

1 Like

Hi,

Just tried this and got it to work with the following launch.json (with code from master):

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Debug in Chrome",
      "url": "http://grafana.staged-by-discourse.com",
      "webRoot": "${workspaceFolder}"
    }
  ]
}

Then launched it and put a breakpoint in panel_ctrl.ts that was successfully hit.

I’m on Ubuntu and using Chrome Version 63.0.3239.84 (Official Build) (64-bit).

Marcus

Thank you for your fast reply! :grinning:
While i was checking every single configuration option regarding source mapping the source of the problem was actually the “version” field was set to “0.1.0” , as i copied the launch.json file from the the extension instructions.

1 Like