stevaber commented on issue #7209:
URL: https://github.com/apache/netbeans/issues/7209#issuecomment-2496080740

   The issue is not related to Ant project only. Same situation is with Maven 
project. Debugger from "Call stack" windows jumps on right source file on right 
location but all references in that source file related to types in other 
source files are marked as red "cannot find symbol". It seams that folders with 
source code added into server registration dialog are not parsed like source 
registered or created in projects.
   Although Maven projects has same issues as  Ant project it is improvement in 
NB21 because before NB21 debugger did not looked for added server source files 
at all.
   
   **To workaround this issue** I created Ant project of type "Java project 
with existing source" and add source folder from targeted Tomcat server
   
![image](https://github.com/user-attachments/assets/b981bb5a-644f-434a-b696-662159cc5b90)
   Project can not be compiled because it has a some number of resolved 
references but debugger from my Web application looked for type source code in 
every open project in NetBeans and opens that files. Source files opened by 
debugger in that way are parsed and have only small amount of unresolved 
references.
   In my web application I did not have to add any reference to that newly 
created Ant project. It is enough just to open that project, if I do not want 
to step through Tomcat source code I just have to close this newly created Ant 
project with Tomcat source files.
   
   Stepping through Tomcat source with opened newly created Ant project:
   
![image](https://github.com/user-attachments/assets/d322dc81-a213-491a-9c88-ef72338c52fc)
   
   Stepping through Tomcat source with closed newly created Ant project: 
   
![image](https://github.com/user-attachments/assets/7a3761d8-8099-421b-b49f-fc71b1fad12e)
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to