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

No access to exhaustive globals() #275

Open
joos2010kj opened this issue Oct 5, 2023 · 0 comments
Open

No access to exhaustive globals() #275

joos2010kj opened this issue Oct 5, 2023 · 0 comments

Comments

@joos2010kj
Copy link

Pretend we have a file as follows:

import numpy as np

def main():
    import ipdb; ipdb.set_trace()

if __name__ == "__main__":
    main()

Here, when you type in "np.array([0])", it works without an issue.
Now if you go to "interact," and if you repeat the same, you will get an error.


Why is this happening?

For some reason, interact does not offer exhaustive variables in globals(). This is quite frustrating as I commonly deal with such problem. Now, if you are wondering if the same problem persists in other pdbs, based on my experience, pdb and pdbpp do not have this problem.

It would be great if this issue can be resolved.

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

1 participant