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.

Bug 58241 - JSP debugger doesn't select line where it stoppped
Summary: JSP debugger doesn't select line where it stoppped
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords: RANDOM, REGRESSION
Depends on: 58091
Blocks:
  Show dependency tree
 
Reported: 2005-04-22 18:41 UTC by Jiri Skrivanek
Modified: 2006-03-24 13:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to test. (186.92 KB, application/octet-stream)
2005-04-22 18:43 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2005-04-22 18:41:27 UTC
JSP debugger doesn't select line where it stopped and user can think that it
doesn't stop at all. I think it can affect users perception of debugger. That's
why I recommend to fix it for NB4.1. To reproduce:

- start IDE with empty userdir
- open MainTestApplication project (attached)
- add breakpoint to index.jsp (e.g. line 18)
- start debugger (F5) and wait until it stops at breakpoint
- continue (Ctrl+F5) and wait until page is shown in browser
- reload page in broser
- debugger stops at breakpoint again but green line doesn't appear in the editor

Output in Debugger Console is also not accurate. First time when debugger stops 
at breakpoint the line with 'index.jsp:18' is underlined (link to editor) but
second time similar line is not printed out:
---
Attaching to tomcat_shared_memory_id
User program running
Breakpoint reached at line 78 in index.jsp by thread http-8084-Processor19.
Thread http-8084-Processor19 stopped at index.jsp:18.
Thread http-8084-Processor19 stopped.
Thread http-8084-Processor19 stopped.
Breakpoint reached at line 18 in index.jsp by thread http-8084-Processor19.
---

It started to happen in build 200504142205. From changelogs seems it might be
connected to changes for fixing issue 56053.
Comment 1 Jiri Skrivanek 2005-04-22 18:43:49 UTC
Created attachment 21836 [details]
Project to test.
Comment 2 Libor Kotouc 2005-04-25 09:03:26 UTC
Workaround is to start debugging of project again (without restarting Tomcat).
Comment 3 Jiri Skrivanek 2005-04-25 09:42:47 UTC
Another workaround is to continue with debugging. Next time it is OK. Also you
can force Call Stack view to refresh (skip to another view and then back).
I can't reproduce it with web project from template. Probably some kind of
bigger project has to be debugged.
Comment 4 Jiri Skrivanek 2005-05-02 15:14:58 UTC
No more happes because 58091 has been already fixed.
Comment 5 Jiri Skrivanek 2005-05-02 15:15:39 UTC
Verified in NB4.1 RC2.