3

I know we can press Ctrl + F2 to detach the debugger but is there a shortcut to attach debugger in android studio?

Morteza Asadi
  • 1,593
  • 2
  • 12
  • 33
Ashwani Kumar
  • 1,251
  • 1
  • 16
  • 25

2 Answers2

8

You can add a mapping for it in Android Studio:

Preferences > Keymap > Search for 'Attach debugger' or navigate the tree to: Main menu > Run > Attach debugger to Android process.

Then just add your preferred mapping. I think it's none on a fresh install of studio. Good luck!

Suraj Rao
  • 28,186
  • 10
  • 88
  • 94
korrekorre
  • 975
  • 10
  • 23
  • I wish there could be and option to remember the device and auto attach the debuggers just like we have at the time of running the app. Anyways thanks! – Ashwani Kumar Apr 20 '17 at 11:14
0

enter image description here

in Android studio's toolbar there is a Attach Debugger Shortcut, shown in the image (poorly edited in MS Paint) .

Akshay More
  • 378
  • 3
  • 9