Commit Graph

275 Commits

Author SHA1 Message Date
Andreas Kloeckner
405b1ae975 Spacing fix to welcome msg. 2011-07-28 02:15:12 -04:00
Aaron Meurer
90d21d3a87 Make the default stringifier a setting
Right now, only type, str, and repr are allowed, but the ability to
define your own stringifier will be added.
2011-07-28 00:10:03 -06:00
Andreas Kloeckner
26a39f2263 Add theme blurb to changelog. 2011-07-28 01:37:01 -04:00
Andreas Klöckner
86296a0552 Merge pull request #8 from asmeurer/cancel
Make cancel in the prefs dialog revert automatic changes
2011-07-27 22:35:05 -07:00
Aaron Meurer
f99a0a33f4 Make cancel in the prefs dialog revert automatic changes
This also refactors the update code for each code, to aviod code duplication.
2011-07-27 23:25:38 -06:00
Andreas Kloeckner
ad81c91214 Clean up sidebar box size changes. 2011-07-28 01:08:31 -04:00
Andreas Kloeckner
9f04a9f3a5 Merge branch 'master' into resize
Conflicts:
	pudb/debugger.py
	pudb/settings.py
2011-07-28 00:57:52 -04:00
Andreas Kloeckner
2b35066262 Bump version, update changelog. 2011-07-28 00:52:59 -04:00
Andreas Kloeckner
308a9951ce Mop up other themes after Aaron's string theme change. 2011-07-28 00:48:39 -04:00
Andreas Kloeckner
007af7f094 Clean up instant-apply, plus a few minor tweaks. 2011-07-28 00:46:23 -04:00
Andreas Kloeckner
c612f74b8e Merge branch 'master' into prefs-auto-update
Conflicts:
	pudb/settings.py
2011-07-28 00:09:51 -04:00
Andreas Kloeckner
3001703b44 Update classic theme for Aaron's string highlight changes. 2011-07-27 23:59:45 -04:00
Aaron Meurer
ab6139dc53 Allow to grow/shrink the height of the variables, stack, and breakpoints
lists

For now, you do it by selecting the list you want to grow/shrink and
pressing [ to grow and ] to shrink, but this can easily be changed.
This uses proportional growing/shrinking, just like the vertical -/+
does, i.e., [ multiplies the weight by 1.25 and ] divides the weight by
1.25.  This perhaps should be changed, as it feels a little awkward,
though the "weight" part of it is hard-coded into urwin, and changing
that would not be easy. On the other hand, this isn't too hard to get
used to, and it's pretty easy to get the sizes you want.

All sizes are saved in the configuration file and reloaded in future
uses.  So technically, a picky user could set any weight he wants to
suit his needs.
2011-07-27 21:50:51 -06:00
Aaron Meurer
37d246d27f Small code cleanup 2011-07-27 21:47:31 -06:00
Andreas Klöckner
56173c510e Merge pull request #6 from asmeurer/stack-setting
Add an option to change the order of the stack
2011-07-27 20:20:56 -07:00
Aaron Meurer
a1a9cc8f7a Save the sidebar width in the config file 2011-07-27 20:54:16 -06:00
Aaron Meurer
b43ab615e6 CONFIG is used in so may places in debugger.py, just import it globally 2011-07-27 20:48:49 -06:00
Aaron Meurer
5645f98c0b Fix selection of stack frames when current_stack_frame is set to bottom 2011-07-27 20:28:34 -06:00
Aaron Meurer
39a7569b9c Fix the line number setting auto-updating
The problem was that the change didn't propagate to the global dict as I
thought it would.  So instead, we use the get_state() of the checkbox
(which is backwards by the way).  ui.setup_palette() doesn't seem to be
necessary in this case, so I left it out.  Anyway, it will still be
called when the dialog is closed.
2011-07-27 19:20:05 -06:00
Aaron Meurer
2433a8be34 Don't save the configuration to file until the prefs window is closed 2011-07-27 18:40:11 -06:00
Aaron Meurer
11681de3aa Don't manually wrap text 2011-07-27 18:37:59 -06:00
Aaron Meurer
fabad16aff Add an option to change the order of the stack
The keyboard shortcuts u/d seem backwards with the current order.  On
the other hand, it seems like the current stack frame should be on top
to some.  Therefore, we make this an option.  See
https://github.com/inducer/pudb/pull/4.
2011-07-27 17:56:19 -06:00
Aaron Meurer
cc521a28ad Make settings update in real time
Right now, the line numbers setting doesn't work correctly, and I don't
know enough about urwid/pudb internals to figure out why.  Any help here
would be much appreciated.

Also, it would probably be a good idea to factor out the saving to file
so that it only happens when the dialog is closed.
2011-07-27 17:25:48 -06:00
Andreas Kloeckner
64dd089ee6 Merge branch 'master' of github.com:inducer/pudb 2011-07-27 18:48:23 -04:00
Andreas Klöckner
3b79e1b3c2 Merge pull request #2 from asmeurer/midnight-theme
Midnight theme
2011-07-27 15:48:13 -07:00
Andreas Kloeckner
db743988d1 Merge branch 'master' of github.com:inducer/pudb 2011-07-27 18:47:51 -04:00
Andreas Kloeckner
cd019a5e22 Update distribute_setup.py. 2011-07-27 18:47:36 -04:00
Andreas Kloeckner
8ac8188be5 Switch from setuptools to distribute. 2011-07-27 18:46:49 -04:00
Aaron Meurer
45f2f1d343 Display the location where the settings are saved in the preferences screen 2011-07-27 16:35:51 -06:00
Aaron Meurer
996a3e1674 Use blue instead of black for group headers
The black on gray was very difficult to see, at least in my Terminal.
If you want, I can use a different color, or if you insist on having
black, I can add this only to the midnight theme.
2011-07-27 16:31:33 -06:00
Aaron Meurer
af67e9ca2b Replace urwid.AttrWrap with urwid.AttrMap
According to the urwid docs, AttrWrap is deprecated, and AttrMap should
be used instead.  This seems to still work the same everywhere, though I
didn't check it extensively.
2011-07-27 16:28:53 -06:00
Aaron Meurer
7e9a0c5910 Add some helpful info to the preferences dialog 2011-07-27 16:22:56 -06:00
Aaron Meurer
7ee1d0097b Show the configuration screen on the first run 2011-07-27 16:11:08 -06:00
Aaron Meurer
5ba12fd65d Revert "Add information about configuration to the help"
This reverts commit e46ecd2655.

I didn't realize there was already a preferences screen.  I may backport
some of this info to there.
2011-07-27 15:46:43 -06:00
Andreas Klöckner
72ce1e7728 Merge pull request #3 from asmeurer/README
Readme
2011-07-27 09:04:10 -07:00
Aaron Meurer
2ad718ca01 Update the README
Wrap some lines, add pip install and setup.py install, and change the
clone/browse urls to GitHub.
2011-07-26 22:58:32 -06:00
Aaron Meurer
c3c03221a8 Make setup.py executable (744) 2011-07-26 22:57:18 -06:00
Aaron Meurer
bb672b57a2 Add README.rst, which is an exact copy of http://pypi.python.org/pypi/pudb
The file is formatted in markdown, so that it looks nice at GitHub
2011-07-26 22:56:00 -06:00
Aaron Meurer
70f80aa805 Add distribute files that setup.py downloads to the .gitignore file 2011-07-26 22:42:24 -06:00
Aaron Meurer
1ea6f71725 Add more fine-grained string tokens to the themes
And update the midnight theme to use them.

So far, String.Single and String.Double do not work, but I think this is
a bug in pygments (see
https://bitbucket.org/birkenfeld/pygments-main/issue/685).  So hopefully
they fill fix it and it will start working :)
2011-07-26 22:39:54 -06:00
Aaron Meurer
0522dfc371 Add string to the list of pygments tokens
Some of the themes were using this, but it didn't work without this
2011-07-26 22:39:33 -06:00
Aaron Meurer
e46ecd2655 Add information about configuration to the help
This also includes a snazzy function to convert the list of themes into
a line broken list, so you don't have to update it with future themes.

I didn't add too much info on custom themes.  The documentation for this
needs to be updated elsewhere, i.e., in the example theme file.
2011-07-26 22:38:43 -06:00
Aaron Meurer
2f92bdf106 Add the midnight theme to the list of themes 2011-07-26 21:55:54 -06:00
Aaron Meurer
1b95a54b6d Add midnight theme, based on XCode's midnight theme
This looks best in a terminal with green text and a black background
(especially the background part)
2011-07-26 21:20:38 -06:00
Andreas Kloeckner
2db8d1bbc8 Switch from setuptools to distribute. 2011-06-26 11:30:39 -04:00
Andreas Kloeckner
c4771141f1 Minor English/exit message fix. 2011-06-20 19:16:55 -04:00
Andreas Kloeckner
a8c1f0a79d Bump version. 2011-06-16 16:11:16 -04:00
Andreas Kloeckner
d5ffd04ce0 Fix issue with postmortem debugging. (submitted by 'Sundance')
There seems to be a little bug in pudb.pm(). pm() calls port_mortem()
with a traceback object as its argument, where post_mortem() expects a
full exception info tuple.
2011-06-16 16:08:20 -04:00
Andreas Kloeckner
5d090ed6c0 Revert "Make a backup copy of '__builtins.open' just in case someone overwrote it. (Requested by Shawn Lee)"
This reverts commit 0b56c09e59.

Did not help original issue.
2011-05-16 19:58:52 +02:00
Andreas Kloeckner
0b56c09e59 Make a backup copy of '__builtins.open' just in case someone overwrote it. (Requested by Shawn Lee) 2011-05-14 01:39:17 +02:00