Questions tagged [ptvs]

Python Tools for Visual Studio turns Visual Studio into a Python IDE. It's a free & open source plug-in for Visual Studio, written and supported by Microsoft and community.

Python Tools for Visual Studio turns Visual Studio into a Python IDE. It's a free & open source plug-in for Visual Studio from Microsoft. PTVS enables developers to use all the major productivity features of Visual Studio to build Python code using either CPython or IronPython and adds new features such as attaching to running Python processes and debugging mixed Python/C++ code.

212 questions
5
votes
4 answers

IronPython in VisualStudio 2012

Is there support IronPython in VisualStudio 2012? I not found IronPython project in templates.
AndreyAkinshin
  • 18,603
  • 29
  • 96
  • 155
4
votes
1 answer

How to check whether debugger of Python Tools for Visual Studio is attached to current process?

How to check whether debugger of Python Tools for Visual Studio 2010 is attached to current process? IsDebuggerPresent and CheckRemoteDebuggerPresent functions are not working, yet Visual Studio 2008 is able to say that it is already being debugged.…
Pavel Chikulaev
  • 841
  • 6
  • 12
4
votes
2 answers

VS code Python attach remote error 'connect ECONNREFUSED'

So I have this Django app inside of Docker running and I'm trying to attach VS code to it so I can debug here is my launch file { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. …
user12314098
4
votes
1 answer

How to setup custom build steps in Visual Studio pyproj projects

I have setup a python project in Visual Studio 2017 Enterprise (Version 15.4) as part of a mixed-project solution also containing various C#(.Net 4.6.2, .Net Core 2.0 and Xamarin) projects. During the build I want to generate several .py source code…
Chris M
  • 73
  • 7
4
votes
0 answers

Visual Studio Python Debugging

I have installed Python Tools for Visual Studio. I have also installed the latest Anaconda package. I'm a .NET developer but have a requirement to do some spreadsheet work with python. So I develop and run my python code in Visual Studio with the…
David
  • 1,203
  • 6
  • 25
  • 48
4
votes
4 answers

VS2015.3/PTVS Python Tools no longer working?

strong textI reinstalled VS 2015 Update 3 (from Web install) w/Python Tools, but Python Tools don't seem to work anymore. From ActivityLog.xml, the error is: 494
rubber boots
  • 14,924
  • 5
  • 33
  • 44
4
votes
1 answer

Python Multiprocessing speed with single process

I've found some behavior with python multiprocessing I'm having difficulties understanding. When using Pool, even if it is a single process, it performs much, much faster. Why is that? Does multiprocessing somehow optimize the code? import time from…
MattZ
  • 41
  • 3
4
votes
1 answer

Autogenerate python docstrings in Visual Studio Express 2013

Is there a way to automatically generate docstrings for python in Visual Studio Express 2013? If I remember correctly, in PyCharm if you type """ after a function/class header it automatically generates a docstring somewhat like the following: def…
causa prima
  • 1,502
  • 1
  • 14
  • 24
4
votes
2 answers

IronPython Remote Debugging with PTVS

i've implemented IronPython in my C#-Application successful. I store all my scripts in a database and load them when they are needed. Now i want to debug my Python-Code with the PTVS. But always when i try to connect with the remote debugger to my…
BendEg
  • 20,098
  • 17
  • 57
  • 131
4
votes
2 answers

Breakpoints inside Flask-RESTful class methods aren't hit on PTVS

I'm using Python Tools for Visual Studio, and I've set up a project with a virtual environment and installed Flask-RESTful there. Then, I just copied their hello world example from flask import Flask from flask.ext.restful import reqparse, abort,…
g3rv4
  • 19,750
  • 4
  • 36
  • 58
4
votes
5 answers

IDE Extensions for Visual Studio Express

Just a quickie question about MS Visual Studio Express editions. Can extensions like Jetbrains ReSharper or the Python Tools for VS be installed and made to work with the express editions of Visual Studio?
Gary Ridley
  • 317
  • 1
  • 4
  • 8
4
votes
1 answer

PTVS plugin for applications that embed python

For an application that "embeds" python, can the PTVS plugin be used for mixed-mode debugging ? To be more specific, let's assume that there is an executable (written in C/C++) called "my_executable" that can be run from the command line, with an…
John
  • 687
  • 1
  • 6
  • 15
4
votes
1 answer

How to check if Python program has been started in Visual Studio?

I am using Visual Studio 12 with Python Tools for Visual Studio 1.5 to develop Python programs. That works very well. Now I would like to check within the Python code whether we are running within Visual Studio or not. Is there an easy way to…
Matthias
  • 9,817
  • 14
  • 66
  • 125
4
votes
1 answer

Python Tools for Visual Studio 2012. Missing Python on tools/option window

After following the guide on This page from codeplex, I'm not able to see the Python option on my tools/option window. I believe the only deviations I took from the guide are: Distributions : Didn't install the activestate python, since I already…
thclpr
  • 5,778
  • 10
  • 54
  • 87
4
votes
1 answer

Installing Python Tools for Visual Studio 2012 (PTVS)

I installed the version for VS 2010 a few weeks ago, and it went flawlessly. I am not having such good luck for the version for VS 2012. What did I do wrong? I ran, in order, two installers from Microsoft, "vs_isoshell.exe",…
Jive Dadson
  • 16,680
  • 9
  • 52
  • 65
1 2
3
14 15