Giter Site home page Giter Site logo

Comments (15)

crucio55 avatar crucio55 commented on May 7, 2024 1
  1. Yes, I used the mouse wheel
  2. Yeah, I can type in it

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024 1

Optimizing with -O3 was indeed done, and some values being optimized out is a given - but getting the tracebacks without explicitly specifying they're wanted with --verbose is less nice.

Yes, I will reduce unnecessary warnings.

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024

With default settings, tmux's mouse setting is enabled. This means the scrollbar of the terminal may not work. Instead, we can scroll with mouse wheel.

I have some questions to understand the issue:

  1. Are you trying to scroll with mouse wheel?
  2. Are you able to type something on terminal even though you can't do scroll?

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024
  1. Yes, I used the mouse wheel
  2. Yeah, I can type in it

Interesting... What browser are you using?

from gdb-frontend.

crucio55 avatar crucio55 commented on May 7, 2024
  1. Yes, I used the mouse wheel
  2. Yeah, I can type in it

Interesting... What browser are you using?

Vivaldi

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024

Interesting... What browser are you using?

Vivaldi

It is really interesting. Can you try it on another browser? When you do scroll, is terminal cursor being moved?

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024

@crucio55 Hello?

from gdb-frontend.

crucio55 avatar crucio55 commented on May 7, 2024

Interesting... What browser are you using?

Vivaldi

It is really interesting. Can you try it on another browser? When you do scroll, is terminal cursor being moved?

Tired out Firefox, seems the same. With ctrl+b (tmux's default control key bind) i manage to scroll the terminal with the arrows and page up/down - but I can't exit that mode (exiting it is done by Esc - but in gdbfrontend it just removes focus from the terminal)

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024

Tired out Firefox, seems the same. With ctrl+b (tmux's default control key bind) i manage to scroll the terminal with the arrows and page up/down - but I can't exit that mode (exiting it is done by Esc - but in gdbfrontend it just removes focus from the terminal)

Ok. I will check it out.

I have some questions:

  • What is your tmux version?
  • Can you do tmux set-option mouse on and try again on the terminal?

from gdb-frontend.

crucio55 avatar crucio55 commented on May 7, 2024

Hi, sorry for the delay!

  • What is your tmux version?
  • Can you do tmux set-option mouse on and try again on the terminal?
  • tmux version is 2.1, though I also have 2.3a on the machine that isn't the default version for this user
  • I tried with set-option mouse on in .tmux.conf, the results are the same in 2.1 - but scrolling does now work when using 2.3a!!!

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024
  • I tried with set-option mouse on in .tmux.conf, the results are the same in 2.1 - but scrolling does now work when using 2.3a!!!

Nice! It sets tmux's mouse option to on as default on startup. Must be something wrong with tmux 2.1.

Let's add a notice about minimum tmux version or buggy tmux versions to README.md.

  • What is your distro? Where did you install newer tmux?
  • Is there any problem now?

from gdb-frontend.

crucio55 avatar crucio55 commented on May 7, 2024
  • What is your distro? Where did you install newer tmux?

Fedora 23 (ancient indeed) - with the new tmux installed manually from source

  • Is there any problem now?

Yeah, I keep getting these in the terminal:
image

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024

Yeah, I keep getting these in the terminal: image

Are you using --verbose option? Actually without verbose option, you must see only gdb.error: value has been optimized out part of this. It means your code is compiled with an optimization flag (like -O3).

For debugging, you should compile your code with zero optimization and debug symbols flags: -O0 and -g.

Like this:

gcc -o app app.c -O0 -g

If you see this traceback even if you don't use --verbose, I will avoid this traceback reporting.

from gdb-frontend.

crucio55 avatar crucio55 commented on May 7, 2024

Are you using --verbose option? Actually without verbose option, you must see only gdb.error: value has been optimized out part of this. It means your code is compiled with an optimization flag (like -O3).

For debugging, you should compile your code with zero optimization and debug symbols flags: -O0 and -g.

Like this:

gcc -o app app.c -O0 -g

If you see this traceback even if you don't use --verbose, I will avoid this traceback reporting.

No, I'm not using the --verbose option.

Optimizing with -O3 was indeed done, and some values being optimized out is a given - but getting the tracebacks without explicitly specifying they're wanted with --verbose is less nice.

from gdb-frontend.

rohanrhu avatar rohanrhu commented on May 7, 2024

I reduced unnecessary warnings. It will be come with v0.10, also you can get the latest revision from GIT until the release.

For tmux problem I will add a "minimum tmux version" note to README.md.

Thank you for reporting!

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.