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 133685 - debugger stops in incorrect source file
Summary: debugger stops in incorrect source file
Status: RESOLVED INVALID
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 16:11 UTC by Lukas Jungmann
Modified: 2008-04-23 19:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-04-22 16:11:54 UTC
-create a webapp, say WA1 (this creates index.jsp and left it opened in the IDE)
-create some html (with some <script>...) there and debug it
-create another webapp, say WA2
-edit WA2/index.jsp to contain:

    <body>
        <h2>Hello World!</h2>
        <script language='Javascript'>
            var str = '';
            //Example test code for WebApplication1
            str = '<h2>Resources for WebApplication1:</h2><br><table border="1">';
            var app = 'new WebApplication1';
            app = 'ahoj';
        </script>
    </body>

-put breakpoint on the line with 'var str...'
-go to project properties -> debug and disable server side debugging and enable client side debugging
-run debug file on the WA2/index.jsp

=>
expected: IDE stops on the breakpoint in the correct file (WA2/index.jsp)

actual: IDE "stops" on the breakpoint in the WA1/index.jsp file, but in this file there is no breakpoint
Comment 1 _ sandipchitale 2008-04-23 19:40:43 UTC
As noted in the user guide here:

http://wiki.netbeans.org/JavaScriptDebuggerTechnologyPreviewUserGuide#section-JavaScriptDebuggerTechnologyPreviewUserGuide-Breakpoints

the client side breakpoints in .jsp file are not supported in Technology Preview. The breakpoint that appears to have
been set is the server side breakpoint.

You set the breakpoint in the client side source that is generated from the .jsp by opening the (client size) source
(the tab will say something like http://.../index.jsp using the Sources window.