Chrome Devtools opens as a search rather then the

2020-07-11 05:08发布

问题:

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.

回答1:

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.



回答2:

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



回答3:

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