views:

22

answers:

0

Our system lets us write Iron Python scripts that can be executed as needed. As part of debugging I'd like to be able to write some script and debug in VS 2010.

So I attach the debugger to the program and then type in my script. However I would like to try an get source level debugging working, and to do this I need to tell VS2010 to open a file containing the python code. However since this code is written on client sites the file name cannot be put in the our program's PDB.

So when I execute a System.Diagnostics.Debugger.Break() in the script, VS2010 breaks correctly but while I can open the python file in VS 2010, it doesn't associate the code with the currently executing context.

Is there a way for to tell VS 2010 at run time to associate a particular file with the currently executing context?