1

Python Tools for Visual Studio has the option to debug a script. How can I assign a keyboard shortcut for this?

Tools/Options/Environment/Keyboard does not seem to contain this option

Colin Pickard
  • 45,724
  • 13
  • 98
  • 148

1 Answers1

3

Command titles are "Start without Debugging" and "Start with Debugging" (in addition to the context menu, they're also under Project). Consequently, the command names are Project.StartwithoutDebugging and Project.StartwithDebugging - you should be able to find those in Tools -> Options -> Environment -> Keyboard.

Pavel Minaev
  • 99,783
  • 25
  • 219
  • 289
  • Thank you very much! I found and tried `Debug.StartWithoutDebugging` which starts the default script for the project, didn't occur to me that `Project.StartwithoutDebugging` would start the script that has focus. I wonder why they chose the Project menu for something that doesn't operate at project level. – Colin Pickard Mar 28 '14 at 09:01
  • 1
    "They" would be me (well, among other people) in this case. But I can't recall why those commands went into that menu :) Unfortunately, moving them around is hard to sell now that we shipped them this way (since it'll break anything depending on their names, like your shortcut binding). – Pavel Minaev Mar 28 '14 at 20:29
  • Ah well, you solved my problem and PTVS is a great tool, so thank you! – Colin Pickard Apr 03 '14 at 08:57
  • 2
    "They" made it more intuitive in Visual Studio 2015 extension. It is now called `Python.StartwithoutDebugging`. – Azmi Kamis Jul 25 '15 at 05:01