Is there a way?
I understand it’s more nodejs question, but I wanted to ask it here before
Won’t simply changing the computer’s default browser work?
I just want to know if there is a way to leave Firefox as default browser and to run debug in Chrome Canary? That’s because I like Firefox mostly, but haxe code debug is working in Canary only for now.
Currently the web page is opened by https://www.npmjs.com/package/http-server
looking at their options it doesn’t look like you can chose what browser to use.
You’re probably going to have to do this manually. After launching the game in your IDE/CLI, keep track of the port number of the localhost it runs (eg. localhost:2000) and then type it in your preferred debugging browser.
We probably should add an option to run the test server, but not launch the browser, so you can click back to a browser and reload. If anyone has suggestions for how we should differentiate, let me know
Maybe simple -nobrowser
?
so it will be like this:
lime test html5 -debug -nobrowser
and maybe print url before starting server?
http://localhost:3000/
just for simple copy-paste
Another option might be something off the build
command, such as lime build html5 -server
or lime build html5 -startserver
or something
Ah, naming is harder than writing the code for it