gpt4 book ai didi

VSCode Debugger Launch doesn't work on arch firefox(VSCode调试器启动在ARCH Firefox上不起作用)

转载 作者:bug小助手 更新时间:2023-10-25 20:05:31 24 4
gpt4 key购买 nike



I am on arch linux.
I ran live server on javascript file, then F5 on that file with below configurations

我使用的是Arch Linux。我在Java脚本文件上运行了Live服务器,然后在该文件上运行了F5,配置如下


{
"version": "0.2.0",
"configurations": [
{
"type": "firefox",
"request": "launch",
"name": "Launch firefox against localhost",
"url": "http://localhost:5500",
"webRoot": "${workspaceFolder}"
}
]
}

DEBUG CONSOLE doesn't show anything and can't really log any variables either. variables on top left corner are also invisible/nonExistent.
it worked perfectly fine on windows 10 and when i ran debug launch, output was written on DEBUG CONSOLE, but on here on arch DEBUG CONSOLE is completely empty. I am doing exactly same but it doesn't work here.
I do have "Debugger for firefox" Vscode extension installed.

调试控制台不显示任何内容,也不能真正记录任何变量。左上角的变量也是不可见的/不存在的。它在Windows10上运行得很好,当我运行调试启动时,输出是写在调试控制台上的,但在这里,ARCH调试控制台上完全是空的。我也在做同样的事情,但在这里不起作用。我确实安装了“Debugger for Firefox”Vscode扩展。


更多回答
优秀答案推荐

for people who are searching ways to debug on firefox. Unless they fixed it, you can download and use chromium to debug. its exactly like chrome and vscode has built in suppor tfor it. I have downloaded chromium and setup chrome launch and it works just fine without any extensions :)
just open js file with live-server and debug on that file
this is my launch.json

对于那些正在寻找在Firefox上调试的方法的人。除非他们修复了它,否则您可以下载并使用Chrome进行调试。它就像Chrome和vscode内置的支持。我已经下载了Chrome和设置Chrome Launch,它在没有任何扩展名的情况下工作得很好:)只需用live-server打开js文件并对该文件进行调试这是我的Launch.json


{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:5500",
"webRoot": "${workspaceFolder}"
}
]
}

both live server and localhost should have same port by the way. its 5500 to me, but it is changeable.

顺便说一句,活动服务器和本地主机应该有相同的端口。对我来说是5500,但它是可变的。


更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com