microsoft / microsoft/vscode-edge-devtools

Guidance for debugging Edge Addons (aka Chrome Extensions)

Open
#3,368 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
827
Forks
358
Avg merge
20h 32m
Merged PRs (30d)
10

Description

Is your feature request related to a problem? Please describe.

When I start a debug launch, breakpoints don't bind for extensions even after loading them unpacked

Describe the solution you'd like:

A section in the docs or a sample in the repo that clearly explains how to configure the Edge extension with a launch config that can breakpoint an Addon, so I can set a breakpoint in vscode, do the action in the browser such as open the extension popup, and have it hit that breakpoint.

Describe alternatives you've considered:

Just running in devtools or debug mode and connecting via port

Additional context:

This works automatically in builtin JS Debugger with this config:

		{
			"type": "chrome",
			"request": "launch",
			"name": "Chrome Extension Debug",
			"url": "https://portal.azure.com",
			"runtimeArgs": ["--load-extension=${workspaceFolder}/dist"]
		}

So why doesn't it work when I change the type to "edge"?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the launch configuration shown in the issue and compare the working chrome setup with the requested edge setup. Document or provide a sample for loading an unpacked extension and setting breakpoints in VS Code; done when the popup or another browser action reaches a breakpoint without a separate DevTools port.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.