Python Tools for Visual Studio by Microsoft

23 views
Skip to first unread message

Adrian Buehlmann

unread,
Mar 11, 2011, 8:52:45 AM3/11/11
to thg...@googlegroups.com
http://pytools.codeplex.com/

I've managed to install the beta PythonToolsInstaller.msi downloaded
from there.

Said installer requires at least the gratis

Microsoft Visual Studio 2010 Shell (Integrated)

as a prerequisite, which can be downloaded from

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=8e5aa7b6-8436-43f0-b778-00c3bca733d3

(this link is shown by the PythonToolsInstaller if it can't find a full
blown Visual Studio 2010. Express doesn't count -- I tried it).

For now I managed to start an interactive python 2.6 x64 shell (seems to
be able to do function completion) and was able to open a python source
file.

I still need to figure out what more can be done with this.

I've attached two screenshots.

PythonTools1.PNG
PythonTools2.PNG

Adrian Buehlmann

unread,
Mar 11, 2011, 10:38:57 AM3/11/11
to thg...@googlegroups.com

Nifty. I can now debug mercurial (Setting breakpoints, single step,
browse objects, see call stack, etc.)

Here is a screenshot while stepping through 'hg log -l3':

https://bitbucket.org/abuehl/downloads/downloads/PTVS-debugging-mercurial-20110311-1.PNG

Angel Ezquerra

unread,
Mar 11, 2011, 3:14:04 PM3/11/11
to thg...@googlegroups.com, Adrian Buehlmann
Nice, it really does work without a Visual Studio license!

I have not used VS2010 much. Is there an easy way to import a folder (recursively) into a VS project?

Angel

Adrian Buehlmann

unread,
Mar 11, 2011, 3:43:59 PM3/11/11
to thg...@googlegroups.com

Yes. And the download page for Microsoft Visual Studio 2010 Shell
doesn't even require to register or anything like that. This "Shell"
thing is sort of an empty Visual Studio, without support for any language.

> I have not used VS2010 much. Is there an easy way to import a folder
> (recursively) into a VS project?

I don't know. I created (by try and error) some project and solution
files manually from within VS and was surprised to see that it's still
nearly as unhandy as the preceding VS versions. But I'm not a VS2010
expert, so I might be missing something.

I'm attaching an experimental patch for mercurial of what the resulting
changes were.


PTVS-mercurial.patch

Adrian Buehlmann

unread,
Mar 11, 2011, 4:21:30 PM3/11/11
to thg...@googlegroups.com
On 2011-03-11 14:52, Adrian Buehlmann wrote:

As a side note, I'm having again problems with that stupid VS editor not
inserting LF line ends (it inserts CR LF), so it's nearly useless for
editing mercurial files (hello eol extension <shuddeR> :-)

Maybe I'll give http://grebulon.com/software/stripem.php a shot.

Reply all
Reply to author
Forward
0 new messages