Skip to content

Can't paste to gdb prompt/terminal #374

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

Open
tlc opened this issue Jan 20, 2021 · 15 comments · May be fixed by #498
Open

Can't paste to gdb prompt/terminal #374

tlc opened this issue Jan 20, 2021 · 15 comments · May be fixed by #498

Comments

@tlc
Copy link

tlc commented Jan 20, 2021

Describe the bug
Can't paste to gdb prompt/terminal

To Reproduce

  1. Run gdbgui -r --args ....
  2. Open browser on remote host.
  3. Everything looks good. I can type in the lower/left terminal box and interact with gdb. I can hover over vars. RHS works.
  4. See messages in lower center box: "Copy/Paste available in all terminals with ctrl+shift+c, ctrl+shift+v"
  5. Try to paste into lower left gdb terminal with ctrl+shift+v, numerous other *-v, firefox right button menu.
  6. No form of paste works.

Expected behavior
Paste should transfer data from my clipboard to the gdb prompt.
I want to paste breakpoints ("b asdfasdfasd").

Please complete the following information:

  • Ubuntu 18.04
  • gdbgui 0.14.0.2
  • gdb 8.1.1
  • firefox on Ubuntu 20.04
# pipx list
venvs are in /root/.local/pipx/venvs
apps are exposed on your $PATH at /root/.local/bin
   package gdbgui 0.14.0.2, Python 3.6.9
    - gdbgui
## pipx runpip gdbgui freeze
Brotli==1.0.9
click==7.1.2
dnspython==2.1.0
eventlet==0.25.2
Flask==0.12.5
Flask-Compress==1.8.0
Flask-SocketIO==2.9.6
gdbgui==0.14.0.2
gevent==1.5.0
gevent-websocket==0.10.1
greenlet==0.4.16
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
monotonic==1.5
pkg-resources==0.0.0
pygdbmi==0.10.0.0
Pygments==2.7.4
python-engineio==3.14.2
python-socketio==4.6.1
six==1.15.0
Werkzeug==0.16.1
@tlc
Copy link
Author

tlc commented Jan 20, 2021

The same behavior is seen with google chrome.

@tlc
Copy link
Author

tlc commented Jan 20, 2021

I can paste to fields in the Right Hand Side with ctrl-v (not ctrl+shift+v) or the browser's right button menu.

I can copy from any of the 3 terminal windows.

@pecastro
Copy link

+1

@david0u0
Copy link

david0u0 commented May 10, 2021

+1 on centos7 + firefox

@david0u0
Copy link

Well I found the cause is the function navigator.clipboard.readText, which is undefined in firefox. After some searching I found more info on https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText

Firefox only supports reading the clipboard in browser extensions, using the "clipboardRead" extension permission.

@YinLiu-91
Copy link

+1

@thesummer
Copy link

The same behaviour is present with Microsoft Edge on Windows.

@retme7
Copy link

retme7 commented Jul 21, 2021

+1 with Chrome / FireFox / Safari on MacOS

@Camio1945
Copy link

+1

@gmccollister
Copy link

I also ran into this with Firefox on Arch Linux (Xorg). Here is a work around that worked for me in X11. You can bind it to a key combination or setup some other convenient way of calling it in your WM:
xclip -selection clipboard -out | tr \\n \\r | xdotool selectwindow windowfocus type --clearmodifiers --delay 25 --window %@ --file -

@aeropia
Copy link

aeropia commented Feb 7, 2023

+1 with Chrome

@gou4shi1
Copy link

+1 with brave

@vw-phantom
Copy link

vw-phantom commented Feb 2, 2024

We are using firefox on Ubuntu 20.04, and this is in my opinion the biggest issue with gdbgui currently that makes it hard for me to recommend its use in our organization. Not being able to paste into the gdb window makes it extremely tedious to type really long commands/paths into it and slows down productivity.

@wikiliu
Copy link

wikiliu commented Apr 9, 2024

+1 no developer to fixing?

@yegorich
Copy link

yegorich commented Mar 5, 2025

I have the same issue with both Firefox and Chrome in Win11.

@dymk dymk linked a pull request Mar 14, 2025 that will close this issue
1 task
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

Successfully merging a pull request may close this issue.