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

How to debug in the web browser? #98

Open
naivenaive opened this issue Oct 2, 2020 · 1 comment
Open

How to debug in the web browser? #98

naivenaive opened this issue Oct 2, 2020 · 1 comment

Comments

@naivenaive
Copy link

I am using the vue-cli-plugin-browser-extension version 0.24.2. It works fine with npm run serve. But when I want to debug in the web browser, I can only find the modified background.js which is edited by the webpack. I can't find the origin code. I added the following code in the vue.config.js as suggested in https://vuejs.org/v2/cookbook/debugging-in-vscode.html . But it never works. How can I get the origin code and debug in the web browser?

configureWebpack: {
   devtool: "source-map"
 }
@mornir
Copy link

mornir commented Oct 5, 2020

Are you trying to debug the popup?
In Chrome, you need right click inside the popup and select "inspect".
In Firefox, you need to click the inspect button on the screen where you added your extension as a temporary extensions.

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