[For Developer] Why expression limit?

22 views
Skip to first unread message

Tadeus Prastowo

unread,
Aug 30, 2012, 10:08:44 PM8/30/12
to win...@googlegroups.com
Hi developers!

I find it convenient when I can have the complete value of a variable when I double click on a tree item in the local namespace tab because, for example, I can copy-and-paste a long string into an editor for further inspection.

Unfortunately, winpdb (hg repository tip) in its rpdb2.py truncates expression that is deemed too long, and such an expression will not displayed in the expression dialog box text field because it has been marked as invalid (cf rpdb2.py in function repr_str_raw).

What is the ground for imposing such a limit on the expression length?

Thank you.

--
Best regards,
Eus

Nir Aides

unread,
Sep 5, 2012, 3:58:53 AM9/5/12
to win...@googlegroups.com
Any reasons the ancients may have had, have been lost in the stream of time...
You should be able to access the value of that variable from the console with the 'v' command.



--
You received this message because you are subscribed to the Google Groups "Winpdb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/winpdb/-/CHIlAeYMKOsJ.
To post to this group, send email to win...@googlegroups.com.
To unsubscribe from this group, send email to winpdb+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/winpdb?hl=en.

Tadeus Prastowo

unread,
Sep 5, 2012, 5:31:39 AM9/5/12
to win...@googlegroups.com
Ah, yeah, that's a very nice trick: using eval to display the content of
a variable.

What I did as I attach in this e-mail was to display the content of the
variable in the GUI. Well, this saves some typing time giving more
pleasant user experience.
> +unsub...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/winpdb?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Winpdb" group.
> To post to this group, send email to win...@googlegroups.com.
> To unsubscribe from this group, send email to winpdb
> +unsub...@googlegroups.com.
patch
Reply all
Reply to author
Forward
0 new messages