Chrome Devtools opens as a search rather then the

2020-07-11 04:56发布

Trying to run a Nativescript debug session and every time I enter

chrome-devtools://devtools/bundled/inspector.html?experiments=true&ws=localhost:41000

it opens a google search rather than the debug session.

https://www.google.com/search?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

Any ideas how to fix this please.

3条回答
家丑人穷心不美
2楼-- · 2020-07-11 05:23

The URL scheme was recently changed to just devtools:// in chromium and the NativeScript CLI hasn't yet been rereleased to correct this minor change.

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

查看更多
【Aperson】
3楼-- · 2020-07-11 05:23

I was faced with the ERR_INVALID_URL when i tried with @IanMacDonalds answer.

For some reason navigating to the URL without parameters first, loaded devtools properly.

devtools://devtools/bundled/inspector.html

Then adding the params on afterwards got the debugging session working again.

?experiments=true&ws=localhost:40000

Hope that helps @Przemo

查看更多
走好不送
4楼-- · 2020-07-11 05:32

You can use devtools://devtools/bundled/inspector.html?experiments=true&ws=localhost:40000 in Opera Browse, works fine

查看更多
登录 后发表回答