Comment 11 for bug 587868

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 587868] Re: can't debug bzr on windows with pdb

Jason Spashett пишет:
> Hello Alexander,
>
> You said that bug #587868 could be fixed. I can look at this but perhaps
> you can tell me what you think needs to be done to fix it.

Read my comment https://bugs.launchpad.net/bzr/+bug/587868/comments/9

If you run qannotate on this function and go back to its origin, you can
see that I've used len(sys.argv[1:]) to get the size of the tail. But
now (with glob expansion) we can't use the same. So we need to use
different approach.

The first good step would be to run bzr under debugger (as you did) and
compare sys.argv with output of get_unicode_argv(), please post those
data as comment to bug report. Based on this data we need to find the
solution to make bzr compatible with pdb.

Another option would be to implement support for some environment
variable, e.g. BZR_NO_GLOB to avoid using this code and forcing use
sys.argv instead.

Maybe the latter would be much simpler to implement.