| Summary: | [jsdt] breakpoints in project files not hit | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | vlad.balan Mising name <vlad.balan> | ||||
| Component: | Debug | Assignee: | Project Inbox <jsdt.debug-inbox> | ||||
| Status: | NEW --- | QA Contact: | Simon Kaegi <simon_kaegi> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | cmjaun, Michael_Rennie, thatnitind, vlad.balan | ||||
| Version: | unspecified | ||||||
| Target Milestone: | Future | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 327019 | ||||||
| Attachments: |
|
||||||
Created attachment 173444 [details]
it'st the breakpoints in the copied versions thar are hit
And to make appear such a breakpoint-aware file I must set "Suspend for all script loads" and use this opprortunity to step-into (F5) the file. This makes the files appears in "External JavaScript Source"" |
Build Identifier: helios for java ee I see that the "load" command copies any loaded js file in "External Javascript Source" folder in Project Explorer. Then only the breakpoints set in these files, not in the original ones in the js projects, are visible. So Rhino synchronizes with the breakpoints in these files. Although in the js debug config you can add projects in the Source tab, projects whose script breakpoints Rhino should synchronize with. Excuse me if i'm wrong or a work in progress. Thank you. Reproducible: Always Steps to Reproduce: To be able to debug i must follow these steps: 1. Setting "Suspend for all script loads" is necessary before the first breakpoints can be set in a script file. You have to set this (in the Breakpoints view in the menu that pops-up by clicking on the little arrow besides the Minimize button, on the top right of the view), then you have to load a script in the Rhino console (in the console view) like : Rhino attaching debugger Start at time: July 5, 2010 4:22:09 PM CEST Listening to socket on port: 9888 Rhino 1.7 release 2 2009 03 22 js> load("d:/eclipseHelios_workspace/test-js/utils/alerts.js") 2. having set "Suspend for all script loads" suspends the thread before any statement in the script is parsed and this is the moment to go to the Debug view and press F5 to step into the script and suspend at the first statment of the script. This is a hack to make appear the source file that is actually used in the debugging. It is a copy of the original js project file and it apperas in a new project called "External JavaScript Source" that can be seen in the Navigator view for example. And this is the file where breakpoints can be set. 3.Set some breakpoint in some function of the file, let's say in function "alfa()". Then call that function(and press Enter) from the Rhino console like: js> alfa() You'll see the thread suspended in the Debug view: Thread [Rhino - 1] (suspended loading script: rhino:/stdin). This is because we have set "Suspend for all script loads" and the console is a kind of script (where the users inputs the commands) and you just entered a statement: "alfa()" Resume by pressing the Resume button in the Debug view or F8. Then the debugger suspends at the breakpoint you set in function "alfa()".