我的扩展程序正常工作,但是在调试器中我什么也看不到 [英] my extension is working but in debugger i can't see any thing

查看:61
本文介绍了我的扩展程序正常工作,但是在调试器中我什么也看不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Firefox创建了扩展程序.创建那个manifest.json文件,并将其设置为可在://.google.com/*"上使用.在扩展名的js文件中,我写了console.log('hello').当我打开google.com时,该扩展名有效,但在调试部分看不到我的js文件,或者如果我在js文件中设置了var,则无法通过控制台进行访问.

I create an extension for firefox. Create that's manifest.json file and set that to work on "://.google.com/*". in js file of extension I wrote console.log('hello'). When I open google.com, the extension is working, but I can't see my js files in debugging section, or if I set a var in my js file, I can't access that via console.

我尝试了新版本的firefox(70.0a1(2019-08-17)(64位)).也就是说,如果单击检查按钮,则可以调试扩展程序.但是,我看不到我的文件.我尝试了Firefox的测试版.也就是说,您可以使用调试按钮来调试扩展程序,但是我遇到了同样的问题.

I tried a new version of firefox(70.0a1 (2019-08-17) (64-bit)). That says if you click on inspect button, you can debug your extension. However, I can't see my files. I tried the beta version of firefox. That says you can use debug button to debug your extension, but I have the same problem.

我的js文件中的代码是

my code in js file is

console.log('hello');

问题是我在devtool中看不到扩展程序的任何文件. (无法在控制台中访问变量,也无法在调试面板中查看我的js文件.)但是,该扩展名有效.

the problem is I can't see any files of my extension in devtool. (can't access variables in console, or see my js file in debugging panel.) however, the extension is working.

推荐答案

您正在使用哪个调试器?

Which debugger are you using?

您是否去过about:debugging-> This Nightly->您的分机-> inspect?

Did you go to about:debugging -> This Nightly -> your extension -> inspect?

这篇关于我的扩展程序正常工作,但是在调试器中我什么也看不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆