Comments (4)
This is more complicated than it appears to be:
- Where should the stack entry be printed? Before or after the
.pdbrc
file is processed? I think after is the right way to go but we can't achieve this easily with the current structure. - Whether the stack entry should be printed is supposed to be determined by the content of
.pdbrc
- whether that gives the user chance to input commands, which can not be determined at the entry point ofinteraction
.
This is a real issue and I need to think about how to address it without changes to cmd.Cmd
.
from cpython.
from cpython.
I realized these days that people are using .pdbrc
differently. For example in #119579, the user uses .pdbrc
as a debugging script so that they don't have to re-type the commands over and over again.
As you can tell, they use sophisticated comamnds like break
, commands
etc., maybe even ll
or p
to display some data. This is a completely valid usage (arguably a useful one), and the outcome is - it will print stuff on the screen! And that would make "before" or "after" a big difference.
The same thing could happen with post-mortem debugging as well - the user could potentially print something to help debugging, and if you print the stack entry before .pdbrc
executes, it would be too far away.
And this is not specific to post-mortem debugging, actually this is an issue for all cases involving .pdbrc
. That's why I wanted to fix it for good, not just have a force switch to print the entry.
I had a patch already, so hopefully this issue could be fixed soon.
from cpython.
from cpython.
Related Issues (20)
- Removed unused internal C API functions
- test_email fails on WASI: thread 'main' has overflowed its stack HOT 1
- faulthandler will hang the process with a TSAN and free-thread build Python HOT 5
- cpython HOT 1
- locals() does not include local variables set in exec() statement in 3.13b2 HOT 33
- `datetime.strftime("%Y")` is not padding correctly HOT 10
- psutil fails (segfault) on macOS in the free-threaded (python3.13t) version HOT 3
- Python 3.13 interactive console - CTRL-C does not give control back to gdb HOT 1
- No precise location provided for bytecode of lambda function returning a constant value HOT 2
- New warnings: ``warning: unused function 'is_core_module' [-Wunused-function]``
- Python 3.12.3 -> 3.12.4 breaks use of `create_autospec(X, spec_set=True, name="X")` HOT 2
- some internal compiler functions don't follow the naming convention
- tarfile silently stops/skips on bad member header (e.g. checksum mismatch) HOT 1
- Soft deprecate os.spawn*(), os.popen() and os.system() functions HOT 2
- Emscripten settings in configure.ac are not embedding friendly HOT 15
- Speed up open().read() pattern by reducing the number of system calls HOT 3
- make_ssl_certs fails with "no issuer certificate" with recent openssl HOT 1
- Hitting Assert for Managed Static Types During Subinterpreter Finalization HOT 3
- The New REPL Does Not Load My Command History HOT 1
- The New REPL Command History Does Not Honor Partial Text
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.