5

I have a project I'm working on in Qt Creator that requires breakpoints to debug. I would like to be able to add a breakpoint by clicking next to the line number, because it is intuitive to me. However, when I click in Qt Creator, the code is folded and and no breakpoint is added.

I can toggle a breakpoint by pressing F9, so this is not the main issue. I can even add a breakpoint by clicking on the left of the line number. However, I tend to click on the right of the line number, which results in folding my code. Can I disable code folding somehow?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Wok
  • 4,956
  • 7
  • 42
  • 64

1 Answers1

6

You can hide the folding markers by unchecking Edit > Preferences > Text Editor > Display > Display folding markers. See the relevant part of the documentation: Highlighting and Folding Blocks.

For older versions of Qt Creator, see Tools > Options > Text Editor > Display > Display folding markers

zerocukor287
  • 555
  • 2
  • 8
  • 23
Bill
  • 11,595
  • 6
  • 44
  • 52