debug window scrolling problem every 10th line?

Questions and discussion about the ZBasic IDE.
Post Reply
stevech
Posts: 715
Joined: 22 February 2006, 20:56 PM

debug window scrolling problem every 10th line?

Post by stevech »

anyone else see a debug window scrolling problem every 10th line?

A program that does a console.writeline(cstr(n)) once a second, on my PC, demonstrates the problem. Every ten lines the window scroll bar moves to the top of the window instead of being set to the bottom. The next line causes the scroll bar to return to the bottom. It's as if the "add line" in the IDE forgets to set the index on that text widget to the end of the list every ten lines.

My Environment:
Windows XP SP1

--- EDIT additional:
The problem seems to arise only after the scroll buffer limit is exceeded. ThaT is, the problem doesn't happen for the first 100 (or whatever the option is set to) lines are displayed.
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post by mikep »

I have not been able to duplicate the problem. The scroll bar "twitches" sometimes but that is due to the way the window scrolls and the relative position of the last line.

In any case this is a problem with the base IDE code (SciTe) and nothing that Don added. We would need to find a reproducible scenario and submit it to the SciTe team. It could also be a Windows XP problem.

However this doesn't sound like a very high priority problem and would probably never be fixed.
Mike Perks
stevech
Posts: 715
Joined: 22 February 2006, 20:56 PM

Post by stevech »

To reproduce it, you have to let these many lines display
debug.line.limit=100 (or whatever you have in the Options User file).

I agree it isn't a huge problem.

But here is a significant issue with it, as follows:
Every 10 lines, the scroll bar jumps to the top and the contents of the window scroll to the top. Now you cannot see the bottom and most recent output in the debug window.

When the next line is displayed, the scroll returns to the bottom, and remains correct for 9 more lines.

Again, I agree it isn't a huge problem.
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post by mikep »

stevech wrote:To reproduce it, you have to let these many lines display
debug.line.limit=100 (or whatever you have in the Options User file).
I was able to reproduce it now with this hint. Previously my options file was set to 1024 so I never saw a problem. So you could change the number of lines to a very high number as a possible workaround.

There have been a number of scolling problems fixed in the SciTe base over the last few years so it is possible that this problem could be reported by Don and fixed. Don would then need to migrate to the latest code level with the fix.
Mike Perks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

We believe that this problem has been solved in v1.1.0 of the IDE.
- Don Kinzer
Post Reply