10000 Would like finer control over tracing into modules · Issue #510 · pyscripter/pyscripter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Would like finer control over tracing into modules #510

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

Closed
GoogleCodeExporter opened this issue Aug 24, 2015 · 4 comments
Closed

Would like finer control over tracing into modules #510

GoogleCodeExporter opened this issue Aug 24, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link
What steps will reproduce the problem?
1.import a module like turtle
2.single stepping into a call, or starting program execution with the F7 key 
automatically opens and steps into turtle.py

Please provide any additional information below.

There is a partial solution, but it involves some black magic:  

__import__("turtle.py").__traceable__ = False

which, after execution is complete, prevents stepping into the named module.  
However, if you just start your program running with F7, you'll end up in the 
imported module before you can turn its tracing flag off.

One can also remove the source code (ha - you can't step into source if it 
doesn't exist) - but this is an ugly solution, and doesn't work unless you 
remove all source.  For example, if I rename turtle.py so the source is not 
found, I end up stepping into parts of tkinter instead!

I'd prefer the behaviour to be configurable in the IDE, perhaps with three 
options:

  a) Automatically open modules that one tries to step into, (current behaviour) 

  b) Only trace into modules that are already open in PyScripter, (the option I'd prefer to use for teaching purposes - they never open automatically, but if you want to step through some library module, just open it first in PyScripter)

  c) Prompt me before auto-opening and stepping into a module. (Maybe some would like a compromise middle policy!)


Original issue reported on code.google.com by p.wentwo...@ict.ru.ac.za on 25 May 2011 at 6:26

@pyscripter
Copy link
Owner

New IDE Option added 'Step into only open files'. Defaults to False.

pyscripter added a commit that referenced this issue Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0