Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace not working on Python 2.7 #28

Open
moon6969 opened this issue Jul 21, 2019 · 2 comments
Open

Namespace not working on Python 2.7 #28

moon6969 opened this issue Jul 21, 2019 · 2 comments

Comments

@moon6969
Copy link

moon6969 commented Jul 21, 2019

I'm using winpdb-reborn v1.5.0 on Python 2.7.

The debugger itself seems to work, but the Namespace frame stays stubornly empty.

I found this related (and very old) issue on original winpdb sourceforge site.

However, I can't figure out how to "start the winpdb UI client with the --debug flag"?

Happy to get my hands dirty, but not sure where to start?

NB: In pdb I can "p n" to print the variable n, but I'm not sure how to do the same in rpdb2...

> eval(n)
N/A
@mmhere
Copy link

mmhere commented Sep 2, 2019

2.0.0.dev5 shows the namespace panel but you cannot click on it. this is with Python3.5 on Ubuntu 16.04 (MATE flavour).

this means you cannot resize columns nor scroll when lots of locals become active. also you cannot select globals nor exceptions tabs.

you also cannot click in the stack frame to view another frame while stopped say further down the call stack.

(I know Python3 is not quite yet there with this but I thought I'd mention these behaviours.)

@moon6969
Copy link
Author

After further investigation, my issue was caused since Python 2.7 no longer support 'sets' module - it has been replaced with builtin set/frozenset commands.

Crude fix for WINPDB_1_5_0 release...

Comment out/delete the is_py3k() check shown below and unindent the "class sets:" section.
Before:

if is_py3k():
    class sets:
        Set = _stub_type
        BaseSet = _stub_type
        ImmutableSet = _stub_type

After:

#if is_py3k():
class sets:
    Set = _stub_type
    BaseSet = _stub_type
    ImmutableSet = _stub_type

@mmhere Since you are running Python 3, this particular 'sets' issue is already handled - so your issue appears unrelated.

@moon6969 moon6969 changed the title Namespace not working Namespace not working on Python 2.7 Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants