Comments (2)
Thank you! I am working on a new major version for madbg, and getting rid of this behavior will be one of the main updates in it. Until then, I fixed your specific issue and published a new minor version - try madbg==1.3.1
and see if it solved your case 😄
from madbg.
I was going to open an bug, but then I saw this existing one (that at least seems to line up with the issue I encountered).
Python: 3.10.5
madbg: 1.2.0
I have an application running in uwsgi on another machine like so:
<uwsgi>
<plugin>python310</plugin>
<virtualenv>/home/me/venvs/serveframe</virtualenv>
<wsgi-file>/home/me/www/u/serveframe.py</wsgi-file>
</uwsgi>
I added a breakpint like: madbg.set_trace(ip='my-ip', port=3513)
and when I tried to connect to it from my PC with $ madbg connect my-ip 3513
it caused the application to crash. This is the end of the stack trace:
.../madbg/tty_utils.py", line 53, in attach_ctty
fcntl.ioctl(fd, termios.TIOCSCTTY, 1)
PermissionError: [Errno 1] Operation not permitted
The line is
Line 57 in dee3137
From ioctl_tty(2) I tried changing the third argument to 1 from 0, but it made no difference. I changed the line to just pass
and was able to connect without an issue.
from madbg.
Related Issues (20)
- Hide madbg frame from user tracebacks HOT 1
- Ctty not restored correctly after madbg attach
- mabdg run -s flag not working
- Add --local option to madbg run, to open a client immediately
- Tests for attach_to_process
- Inifinite traceback when pressing Ctrl-C on debugged process
- AttributeError: dlsym(0x7fe7fd446100, injector_attach): symbol not found HOT 4
- Support attaching to processes that can't import madbg
- Use set_trace_on_connect in _inject_set_trace instead of registering a signal handler
- Can't attach to a process on musl libc HOT 3
- is it possible le to see matplotlib plots HOT 5
- Could not find libc HOT 1
- Add a table with comparison to similar tools
- PermissionError: [Errno 1] Operation not permitted HOT 5
- ModuleNotFoundError: No module named 'fcntl' HOT 3
- ModuleNotFoundError: No module named 'fcntl' HOT 1
- Make `run_in_process` a context manager to make sure the pool is destroyed
- abort: no module named 'madbg' HOT 1
- OSError: Bad file descriptor in madbg/debugger.py, sometimes, when connecting to running process HOT 1
- Question asyncio stack trace HOT 1
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 madbg.