2

I want to attach to a python script that is called by another program (.exe).

I am developing the python script.

Right now, I am using (Python 2.7)

raw_input("Press Enter to continue and/or attach debugger...")

to make the script wait and attach the debugger.

Is there some convenient way, like C#

Debugger.Break()

(see https://stackoverflow.com/a/105599/586754 ) to directly prompt me to attach with the already open Visual Studio instance? Manually attaching (especially when doing many runs) takes some time. I have done it so often I even know Ctrl+Alt+P to open the attach dialog (then click in program list, hit p for python, click attach..).

Community
  • 1
  • 1
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104

1 Answers1

1

There is no such thing currently. Feel free to file a feature request.

Pavel Minaev
  • 99,783
  • 25
  • 219
  • 289