godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Allow adding a shortcut for remote debug (one-click deploy) #11143

Open sockeye-d opened 1 week ago

sockeye-d commented 1 week ago

Describe the project you are working on

Experimenting with mobile deploy

Describe the problem or limitation you are having in your project

The rest of the run buttons (run main scene, run current scene, etc.) have shortcuts. Remote debug does not (there is a shortcut called "deploy with remote debug", but it only toggles the setting in Debug > Deploy with remote debug which is pretty useless)

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add a bindable keyboard shortcut for remote debugging

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

When the user presses "Shift + F5" or a similar shortcut, it will run the project on the connected mobile device

If this enhancement will not be used often, can it be worked around with a few lines of script?

No

Is there a reason why this should be core and not an add-on in the asset library?

Add-ons can't access the remote debug button as far as I can tell

Calinou commented 1 week ago

One issue is that if you have multiple devices connected, the button turns into a dropdown. What should happen in this case?

sockeye-d commented 1 week ago

Ah. Maybe you could pin/favorite a device, so that the favorite device always gets run, or there could be shortcuts to run the 1st, 2nd, 3rd, etc. device?