Score:1

Mouse click not working while debugging with GDB

gb flag

I'm trying to debug a windowed application with GDB in Ubuntu.

First I set a breakpoint in the code.

Then, while running the windowed application, the program stops at the breakpoint at some time.

When that happens, even though the mouse cursor can move freely, clicking doesn't work (left-click, right-click, middle-click and mouse wheel - none of them work).

The keyboard works fine I can type, I can Alt+Tab, etc.

This makes makes debugging very hard. Have you experienced this problem? What can I do?

My application is using SDL2. I have tried this script but didn't work.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.