Giter Club home page Giter Club logo

Comments (2)

kmaork avatar kmaork commented on June 11, 2024 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.

ascendant512 avatar ascendant512 commented on June 11, 2024

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

fcntl.ioctl(fd, termios.TIOCSCTTY, 1)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.