artbek / chrome-xdebug-client

Xdebug Chrome App/Extension
47 stars 13 forks source link

Please add some keyboard shortcuts for debugging #4

Closed SBhojani closed 9 years ago

SBhojani commented 9 years ago

This is a great piece of software that you've built. Love it. One thing that it is desperately missing is the ability to do the stepping (in, out, over etc.) using the keyboard.

Key mappings with the function keys, for example, would be nice. Something conventional, like: F8 Step Over F7 Step Into F9 Step Out

What do you say?

artbek commented 9 years ago

Thanks! I like the idea and I will definitely look into it.

PhoneixS commented 9 years ago

Yes, this will help a lot to debug faster and if you make the key mappings configurable, it will be very nice as each one of us like/are accustomed to specific keys. In my case to:

FossPrime commented 9 years ago

Yes, it would be very nice to have the keys we are accustomed to... the ones on the Firefox and Chrome JavaScript debugger... this is a Chrome browser extension after all. In another ticket, a json config file might be in order... with syncing chrome.storage persisting.

They are F8 Pause F10 Step over F11 Step In Shift + F11 Step Out

Side note, ChromeOS users would typically have only one debugger installed... the Chrome JavaScript debugger with the shortcut mappings above. The Firefox and Chrome debuggers are also, by far, the most ubiquitous.

artbek commented 9 years ago

I just released version 2.3 and it means that this feature is next on the agenda... and yes, I definitely want the key mappings to be configurable ;)

Thanks for your input and watch this space!

artbek commented 9 years ago

FYI... v2.4 has just been released and it's all about keyboard shortcuts! :O

PhoneixS commented 9 years ago

Fantastic and easy to configure!

I think you can close this issue ;)

FossPrime commented 9 years ago

"Easy to configure" Nice update, but why aren't there defaults? Take a side by default ( my side ). Defaults matter. I run this app on three computers and frequently format / update them. As the settings don't sync, I'll likely just use what ever defaults you set... though I'd really really love if you'd just use the Chrome Debugger ones.

I realize this is tricky considering the many different keyboards this app may be used with: Here are the official Chrome JS Debugger shortcuts: Continue: F8 or Command + \ on Mac or Ctrl + \ on other platforms. Step over: F10 or Command+' on Mac or Ctrl+' on other platforms. Step into: F11 or Command+; on Mac or Ctrl+; on other platforms. Step out: Shift+F11 or Shift+Command+; on Mac or Shift+Ctrl+; on other platforms. Next call frame: Ctrl+. on all platforms. Previous call frame: Ctrl+, on all platforms. https://developer.chrome.com/devtools/docs/javascript-debugging

PhoneixS commented 9 years ago

Yes it should have default keys whatever they are.

artbek commented 9 years ago

FYI The defaults were added in v2.5