Thursday, November 8, 2012

Debugging python in Google App Engine with Visual Studio

This guide might not work anymore, try this instead:

This is what you need, download and install in this order:
  1. Visual Studio 2012
  2. Python  (latest 2.7.? version) 
  3. Python Tools for Visual Studio
  4. Google App Engine SDK for Python
Read the Getting started tutorial when you get to the Hello World example instead of creating a directory,  you just create a "Python Application" project in Visual Studio with the name helloworld, then just continue follow the tutorial and create the files needed in Visual Studio instead.

To be able to run and debug the application from Visual Studio there are some project properties you need to fill in:

General->Startup File: C:\Program Files (x86)\Google\google_appengine\
General->Working Directory: ..
General->Interpreter: Python 64-bit 2.7 or Python 32-bit 2.7
Debug->Search Paths: C:\Program Files (x86)\Google\google_appengine;.
Debug->Script Arguments: --use_sqlite helloworld

Start debugging.

You will get a ZipImportError exception.
This exception can be ignored and this is how you do that:
  • Open Debug->Exceptions... 
  • click the Add button.
  • Set type to "Python Exceptions" and in the name field write this:
  • google.appengine.dist.py_zipimport.ZipImportError 
  • click the OK button and uncheck the User-unhandled checkbox
  • click OK and continue execution.
Now you're good to go, enjoy.

PTVS - Setup and Debugging of Google App Engine with Python Tools for Visual Studio

Monday, November 5, 2012


A couple of months ago I created an account on

The first project I published was LightWpfControls, it's the start of a collection of WPF controls.

The first control in the collection is what I choose to call a tracker. A tracker is what I would call a two dimensional slider control. I spent quite some time to find, using search terms like "2D Slider", "track pad", "joy stick" and many more. But I struck out, so I ended up creating one my self.

There is two different shapes of the tracker square and circular.

The project can be found here: LightWpfControls

Thursday, October 18, 2012

Visual Studio 2012 Extensions...

Updated 2013-05-08

I'm not going to bring up the obvious extensions like ReSharper, CodeRush, NuGet or Sourcecode Control Providers.

This one's for the "unknown" extensions...

It started almost 30 years ago with a boy growing up in the middle of nowhere. There where a lot of trees and a lot of grass and almost no computers anywhere.
I didn't start my career with punch cards or anything like that, don't get me wrong but that's ancient.
How ever IBM Dos 2.16 isn't far from punch cards compared to an iPhone.

But I digress..

What I wanted to say is, find the fun stuff in life; I know I have and that's writing code.

So, to have more time to write code you use tools that makes every keystroke count.
I like Visual Studio, but there is always room for improvment...

Here is my favorite Visual Studio Extensions in alphabetical order:

 What's yours?