Chrome Devtools opens as a search rather then the dev tools themselves

时间秒杀一切 提交于 2020-06-01 06:21:53

问题


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



来源:https://stackoverflow.com/questions/62066780/chrome-devtools-opens-as-a-search-rather-then-the-dev-tools-themselves

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!