Comment 7 for bug 952132

Revision history for this message
Scanferlato (jls-boost) wrote :

You can find the fix here:

lp:~jls-boost/bzr/bug952132

After some testing, the procedure posted in comment #3 needed some changes. The updated version is described here.

As said before, Python is installed in C:\Python27, and path to Pythonwin executable is

C:\Python27\Lib\site-packages\pythonwin\Pythonwin.exe

Bazaar branch is located under path F:\bzr. The script bzr was copied and renamed to bzr.py

To start debugging Bazaar with Pythonwin, open a DOS shell, change to folder F:\bzr and invoke bzr with some command, let's say "help init", so you need to type:

C:\Python27\Lib\site-packages\pythonwin\Pythonwin.exe ./bzr.py help init

Wait until Pythonwin starts up, open the Run Script dialog box (Ctrl-R or menu File, Run), select the options shown below:

Script file --> F:\bzr\bzr.py
Arguments --> arg1 arg2
Debugging --> Step-through in the debugger

and click the OK to start debugging.

Notice that the arguments are "arg1 arg2" and not "help init". In fact, you can name them anything you want because the "real" arguments passed to bzr are always those you type in the DOS shell. The important thing is that the NUMBER of arguments must be the same as in the DOS shell (two, in this example).