Chrome Devtools以搜索方式打开,而不是以开发工具本身的方式打开。

问题描述 投票:0回答:2

试图运行一个Nativescript调试会话,每次我输入了

chrome-devtools:/devtoolsbundledinspector.html?experiments=true&ws=localhost:41000。

它打开的是google搜索而不是调试会话。

https:/www.google.comsearch?q=chrome-devtools%3A%2F%2Fdevtools%2Fbundled%2Finspector.html%3Fexperiments%3Dtrue%26ws%3Dlocalhost%3A41000&oq=chrome-devtools%3A%2F%2Fdevtools%2Fbundled%2Finspector.html%3Fexperiments%3Dtrue%26ws%3Dlocalhost%3A41000&aqs=chrome.0.69i59j69i60j69i61.1074j0j7&sourceid=chrome&ie=UTF-8。

请问有什么办法可以解决这个问题。

google-chrome-devtools nativescript
2个回答
6
投票

最近,URL方案被改为只 devtools:// 而NativeScript CLI还没有重新发布,以纠正这个小的变化。

使用 devtools://devtools/bundled/inspector.html?experiments=true&ws=localhost:41000.


6
投票

当我尝试使用@IanMacDonalds的答案时,我面临着ERR_INVALID_URL。

由于某些原因,在没有参数的情况下,先导航到URL,正确加载devtools。

devtools://devtools/bundled/inspector.html

然后在之后添加参数,调试会话又正常了。

?experiments=true&ws=localhost:40000

希望对 @Przemo 有帮助

© www.soinside.com 2019 - 2024. All rights reserved.