0

when using pdb in gvim by executing

:!python %

the window that shows the progress of PDB will gradually scroll out the window that shows the whole python scripts. but sometimes I need to have a quick glance at the entire scripts. I know by typing l at PDB command prompt can show where the current debugging point is but it is still not able to browse the whole context.

I also tried to run pdb with two windows open but both of them will be scroll out by PDB window.

do you have any ideas that I can debug python script from one window while show the entire script from another window in gvim? If there is not such solution how to you cope with the problem (want to have a look at the script when debugging)

thanks a lot! enter image description here

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Chenming Zhang
  • 2,446
  • 2
  • 26
  • 34
  • You can open the current buffer in another tab with `:tabe %`. – romainl Oct 21 '13 at 12:30
  • @romainl Thanks for reply, I tried to do as you suggested, but once coming into PDB mode, one can not choose any other opening tabs. also tab are not endorsed by some users http://stackoverflow.com/questions/102384/using-vims-tabs-like-buffers?rq=1 – Chenming Zhang Oct 21 '13 at 14:59
  • I'm one of those users who don't endorse tabs but only when used instead of buffers. Used as what they are , they are OK. Anyway, why don't you run that thing in a terminal? – romainl Oct 21 '13 at 15:21

0 Answers0