This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Debugger console should show last line | ||
---|---|---|---|
Product: | platform | Reporter: | _ lcincura <lcincura> |
Component: | Output Window | Assignee: | _ tboudreau <tboudreau> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ lcincura
2004-08-09 19:41:26 UTC
AFAIK we can't control scrolling in output window, assigning to core for evaluation. Updating the output runs on a timer; also, the timer will only know there is some new output if a \n is part of the output. Easy fix: Call OutputWriter.flush - this will generate an event that forces it to refresh, even if some output is only partially written. But /n is part of output. We are printing whole lines. Flushing does not help! Just try: public class Test { public static void main(String[] args) { int i, k = 10000; for (i = 0; i < k; i++) System.out.println("print " + i); //breakpoint here and continue, continue.... } } Output from ant ("Test (debug)") works, but output from debugger ("Test"_ not. The commit message, which says it all: #47030 - debugger output on breakpoint doesn't scroll. More hacks. We really need an API for this, ala boolean OutputListener.iAmWorthyOfAttention(). In the meantime, more hardcoded strings. Which is the case. The output window will stop scrolling on the first linked line, unless it matches a few hardcoded conditions (the line contains the text "warning", "deprecated", and now, "stopped"). Before "stopped" (is it localized? I hope not), it would identify any line with an associated output listener that didn't contain "deprecated" or "warning" as something the user should pay attention to, and so, stop scrolling. What we need is some additional method like "isImportant" on OutputListener, to be able to decide which things are really errors you should stop scrolling for, because the user will need to see them, and which are semi-interesting noise (which these particular debugger messages are). Verified on build 200409131800 |