Commit Graph

452 Commits

Author SHA1 Message Date
Aaron Meurer
cab1568cc5 Add w shortcut for toggling wrapping in the variables view 2011-08-07 03:04:36 -06:00
Andreas Klöckner
697964333e Merge pull request #17 from asmeurer/modules_bug
Fix bug in modules viewer caused by move from AttrWrap to AttrMap
2011-08-07 02:04:16 -07:00
Aaron Meurer
bbd9ef92dc Fix * shortcut for displaying of private members in expanded vars view 2011-08-07 03:03:28 -06:00
Aaron Meurer
bf78b4a6e6 Remove 200 character limit on strings in the variables view
If someone wants to limit the length of the string, he should write a
custom stringifier to do it.
2011-08-07 02:31:38 -06:00
Aaron Meurer
4b0852f197 Add variable wrapping to the prefs 2011-08-07 02:14:06 -06:00
Aaron Meurer
8acd47d870 Enable wrapping of variables in the variables view
I also added an option for this, which made it easier for me to debug.
I haven't added it to the prefs yet.

TODO:

- Add the option to the prefs.

- Allow to turn on wrapping on a per-variable basis ('w' will turn this
  on and off in the variables,   view, and there will also be an option
  in the variable inspection options window).

- Right now, wrapped lines beyond the first line are indented two
  spaces.  This is the same as what digging into a variable looks like,
  which make it confusing (granted, digging in still indents further,
  but it's harder to follow).  I think variables that are sub variables
  should have some kind of character preceding them, like:

    varname: [1, 2, 3]
    + 0: 1
    + 1: 2
    + 2: 3

- When variables are not wrapped, there should be an ellipses at the
  end.  When unicode is supported, we can use …, otherwise, we use ...
2011-08-07 01:10:11 -06:00
Aaron Meurer
0b91f29efd Fix bug in modules viewer caused by move from AttrWrap to AttrMap
The bug occurred when you tried to load a module.
2011-08-06 22:00:12 -06:00
Andreas Klöckner
2379cdbc67 Merge pull request #14 from livibetter/36392c7
Fix search_AttrMap fails to set attr map by calling wrong method
2011-08-04 22:51:11 -07:00
Andreas Klöckner
1d21fc1bd0 Merge pull request #16 from jtriley/fix-dark-vim-highlight
use 'dark green' for highlight in 'dark vim' theme
2011-08-04 22:50:10 -07:00
Justin Riley
d8b8e48bed use 'dark green' for highlight in 'dark vim' theme
...it's easier on the eyes ;)
2011-08-05 01:46:39 -04:00
Yu-Jie Lin
36392c7af4 Fix search_AttrMap fails to set attr map by calling wrong method
Fix inducer#13.
2011-08-05 08:52:53 +08:00
Andreas Kloeckner
267846172f Minor tweaks to Aaron's custom stringifiers. 2011-07-29 11:52:35 -04:00
Andreas Klöckner
4018c9858a Merge pull request #9 from asmeurer/stringifier
Make the default stringifier a setting
2011-07-29 08:27:25 -07:00
Andreas Kloeckner
1104f2d24c Make README as suggested by Aaron, read from setup.py for long_description. 2011-07-29 11:19:59 -04:00
Andreas Kloeckner
d7cb2237f3 Small fix for IPy 0.11 support. 2011-07-29 11:15:02 -04:00
Andreas Kloeckner
16819bf80b Merge branch 'master' of github.com:inducer/pudb 2011-07-29 11:13:36 -04:00
Andreas Klöckner
8b6ccf1330 Merge pull request #11 from cfarrow/master
Added ipython 0.11 support
2011-07-29 08:13:27 -07:00
Christopher L. Farrow
f154d80b0f Merge remote branch 'remotes/origin/ipython0.11' 2011-07-28 23:36:13 -05:00
Aaron Meurer
4d287ba38e Add support for custom stringifiers on a per-variable basis
The keyboard shortcut for custom stringifiers is c.
2011-07-28 22:36:12 -06:00
Aaron Meurer
acacfaa03e Add some more useful information to the example-stringifier.py file 2011-07-28 22:35:56 -06:00
Aaron Meurer
9f8cb6667f Add example-stringifier.py file
This shows one possible use of the custom stringifier functionality.
The example function computes str(), unless it takes longer than one
second to compute (it uses signal.alarm() to determine this), in which
case it falls back to type.
2011-07-28 22:26:52 -06:00
Christopher L. Farrow
a685781763 Both the shell and magic functionalities work 2011-07-28 23:26:03 -05:00
Aaron Meurer
820be5ffba Add support for custom stringifiers to PuDB
Also included in this commit is a change that makes the custom theme and
custom stringifier preferences persistant, so that the user does not
have to re-enter them if deselects "Custom".  This wasn't easy to split
out, so it's included here.

I still need to add support for manually choosing a the custom
stringifier on a per-variable basis.
2011-07-28 22:24:47 -06:00
Christopher L. Farrow
4a28edef59 Magic working, but for current shell implementation 2011-07-28 23:03:15 -05:00
Christopher L. Farrow
5867cbf98b fixed bug where IPython namespace was static 2011-07-28 22:10:30 -05:00
Christopher L. Farrow
603411a894 Shell integration working, pudb magic is not 2011-07-28 10:59:15 -05:00
Aaron Meurer
654504af87 Don't try to update a custom theme automatically in the prefs window
This doesn't work, as the user will likely try to choose "Custom" before
entering a file name, resulting in an error.  So instead, make choosing
"Custom" select the file entry box, and don't try to load it until the
preferences dialog is closed.  Built-in themes are still updated
automatically.
2011-07-28 04:03:05 -06:00
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