News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

breakpoints change position

Started by olaf888, April 29, 2016, 01:01:17 AM

Previous topic - Next topic

olaf888

Hello

when I set a breakpoint and change something lines above insert  some lines
the bp goes faster down than the position where I set it.

Where to change the behaviour of breakpoint position or similar ?

oBFusCATed

Can you try to explain the problem better?
I'm not sure I understand it from the initial description.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

raynebc

I interpreted it as him putting a breakpoint on line #a, but when he inserts a new line above the breakpoint, the breakpoint is moved to line #(a + 2) instead of #(a + 1).  This isn't a problem I've experienced.

olaf888



ahhh now I see
I have that only when I have splitted view vertically.
This must be a bug.

raynebc

I couldn't reproduce this on the latest nightly build.  I tried having a couple source files in horizontal or vertical split view, but in both scenarios when I placed a breakpoint and inserted a new line above it, the breakpoint moved down only one line (staying applied to the correct line of source code).  How are you inserting lines when this happens?  Is it placing a blank line with Enter, pasting lines of code or something else?

Jenna

Happens here too (Fedora 23) with latest trunk.
If I add a newline with return, the breakpoints moves down one extra line.
It happens only in split mode, no matter, whether it's horizontal or vertical.

raynebc

If you're creating the split view just by dragging the source file's tab to the left/right/bottom edge of the program window, then at least this problem doesn't occur in Windows.

Jenna

Quote from: raynebc on May 01, 2016, 02:16:46 AM
If you're creating the split view just by dragging the source file's tab to the left/right/bottom edge of the program window, then at least this problem doesn't occur in Windows.
That's not a split-view.
Split view means that you split the editor (via context-menu), so you can see two different parts of the same file.

What you did is the side-byside-view, where you can view two (or more) different files at the same time.

Jenna

It happens because "OnEditorModified" is called for each control and therefore ShiftBreakpoint is called two times.
No time to dig into a solution at the moment, mybe later today.

oBFusCATed

olaf888:
Can you open a ticket on our project page at sf.net?
This will help us to not forget about this issue.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

oBFusCATed

Fixed in rev 10849. Thanks for reporting.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]