Giter Site home page Giter Site logo

Comments (33)

rohanrhu avatar rohanrhu commented on May 8, 2024

Can you provide ./gdbfrontend output and output for tmux a -t gdb-frontend?

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

DeepinScreenshot_select-area_20200217092919

even starting ./gdbfrontend with -V doesn't yield any more useful output really

Each of those 'GET /' lines is from refreshing the page in Chorme/Vivaldi/Firefox

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

What is your tmux version and which OS are you using?

from gdb-frontend.

jibanes avatar jibanes commented on May 8, 2024

I have the same issue on debian 9 running tmux 2.3

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Arch Linux 5.5.4 , tmux 3.0_a-1

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Try updating tmux to 2.8 at least or empty tmux.conf content. I will add a check tmux version check for fallback

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Arch Linux 5.5.4 , tmux 3.0_a-1

Very interesting.. clean your tmux.conf until the solution.

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Arch Linux 5.5.4 , tmux 3.0_a-1

Very interesting.. clean your tmux.conf until the solution.

I'm no longer at that desktop, I was only able to confirm those version numbers because my laptop is on Arch too. I'll let you know if cleaning the tmux.conf fixes things when I get home in ~3 hours.

from gdb-frontend.

jibanes avatar jibanes commented on May 8, 2024

I have no ~/.tmux.conf , same problem.

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

I have no ~/.tmux.conf , same problem.

It has its own tmux.conf: https://github.com/rohanrhu/gdb-frontend/blob/master/tmux.conf

Clean its content but don't remove the file.

from gdb-frontend.

jibanes avatar jibanes commented on May 8, 2024

I cleared tmux.conf
I get popups "Connection closed to GDBFrontend server!" on 5551, closing that box makes a new one appear
gdb is "running" in 127.0.0.1:5550

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Tried it from my laptop, same "Connection Closed Message" even if tmux.conf in the gdb-frontend folder is cleared here as well

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

The Tmux session does open now:
gdbissue

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

I think carriage returns may occur this problem but im not sure.

  Offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 	
00000000: 73 65 74 20 2D 67 20 73 74 61 74 75 73 2D 62 67    set.-g.status-bg
00000010: 20 62 6C 75 65 0D 0A 73 65 74 20 2D 67 20 73 74    .blue..set.-g.st
00000020: 61 74 75 73 2D 66 67 20 77 68 69 74 65 0D 0A 73    atus-fg.white..s
00000030: 65 74 20 2D 67 20 73 74 61 74 75 73 20 6F 66 66    et.-g.status.off
00000040: 0D 0A 73 65 74 20 2D 67 20 6D 6F 75 73 65 20 6F    ..set.-g.mouse.o
00000050: 6E                                                 n

Can you try this? 6c9723a

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

The Tmux session does open now:
gdbissue

I have not tested GDB 9 yet. I will look that.

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

That didn't appear to do anything. Tmux is working fine from what I can tell. Intreguringly, on the laptop I'm getting a bit more output, despite getting the same error in the browser, this is regardless of what's in the tmux.conf file. Also, on the laptop, for no apparent reason, if I go to 127.0.0.1:5551/terminal, the terminal does load briefly now (this is dependent on tmux.conf) but I still get the connection error message and the page gives me no choice but to reload
badgdb

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

The Tmux session does open now:
gdbissue

I have not tested GDB 9 yet. I will look that.

I'd imagine that's our problem. I'll see if I can install 8 and point it to use it. Gimme a bit

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Can you paste outputs for these commands on GDB shell?

shell echo $CWD
python import sys;print(sys.version)
python print(dir(server))

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

I just tried downgrading to 8.3.1, no change. Putting them back up to 9.
shell echo $CWD gives no output

(gdb) python import sys;print(sys.version)
3.8.1 (default, Jan 22 2020, 06:38:00) 
[GCC 9.2.0]
(gdb) python print(dir(server))
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'server' is not defined
Error while executing Python code.

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Did you try python print(dir(server)) on tmux gdb-frontend session?

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Did you try python print(dir(server)) on tmux gdb-frontend session?

Not above, but I just did and the output is exactly the same

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Strangely, in the tmux session I can't even do the print(sys.version),
sysver

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Strangely, in the tmux session I can't even do the print(sys.version),
sysver

print() is python function like python import sys;print(sys.version)

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Did you try python print(dir(server)) on tmux gdb-frontend session?

Not above, but I just did and the output is exactly the same

Can you paste these outputs?
python import os;print(os.getcwd())
python import server;print(dir(server))

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Strangely, in the tmux session I can't even do the print(sys.version),
sysver

print() is python function like python import sys;print(sys.version)

ope, my bad. Currently in class so trying to listen and type at the same time. It does print in the tmux session:
tmux2

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

It seems that file is a different file from https://github.com/rohanrhu/gdb-frontend/blob/master/server.py

Can you paste this output? python import server;print(server.__file__)

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Yep, you're right. It's using /usr/lib/python3.8/site-packages/server.py

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Yep, you're right. It's using /usr/lib/python3.8/site-packages/server.py

Can you try this? 874e5b5

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

cant test it to really confirm right now, (laptop is about to die) but that does seem to have worked!

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Im sorry for your laptop :/ Did 6c9723a solve the tmux issue?

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 8, 2024

Can we close this issue?

from gdb-frontend.

VegaDeftwing avatar VegaDeftwing commented on May 8, 2024

Yeah, didn't actually realize it wasn't already. My bad.

from gdb-frontend.

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.