blakemcbride opened a new issue, #4754:
URL: https://github.com/apache/netbeans/issues/4754

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   Rather than compiling code and then running it, my system compiles, 
dynamically loads, and then runs code.  The benefit of this is that code can be 
changed at runtime on a live system without having to compile or re-boot a 
production server.  This is something I have been using for years in production 
environments.  It works well.  The actual source code for this is at 
[https://github.com/blakemcbride/Kiss](https://github.com/blakemcbride/Kiss)
   
   Previously, I used IntelliJ.  Debugging this code in a live environment and 
changing it dynamically worked as expected.  However, NetBeans doesn't seem to 
update its debug info when I dynamically change code.  The first time I execute 
the code, NetBeans debugs fine.  However, after I change the code, NetBeans 
seems to have its line numbers off.  So, the new code is executing, but 
NetBeans is using debug info from the original load.
   
   Again, this is production code that has been working perfectly for years.  
With IntelliJ, I have been able to debug updated code without a problem.  And 
there has never been a problem in production.  When I update a file, the new 
code gets executed just fine.
   
   I created two videos that demonstrate the problem.  The first video shows 
code that is dynamically loaded.  It debugs just fine.  The second video shows 
a debug session after it has been changed and re-loaded.  You can see that 
NetBeans is using the wrong line number information.  Here are links to the two 
videos.
   
   [](https://private.stack360.io/files/debug-1.mkv)
   [](https://private.stack360.io/files/debug-2.mkv)
   
   
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Fedora Linux
   
   ### JDK
   
   17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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