You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "davidbitterlich (via GitHub)" <gi...@apache.org> on 2023/05/23 12:32:22 UTC

[GitHub] [netbeans] davidbitterlich opened a new issue, #5979: Unable to perform remote debugging

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

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   I am unable to start remote debugging because NetBeans produces a wrong command line for it. In the output window I see the following command line and error message:
   
   cmd : cd '/Users/administrator/testdir/NetBeansProjects//JavaApplication1'; '/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java' ${debug-args-line} -Xrunjdwp:transport=dt_socket,address=localhost:56072 -Dfile.encoding=UTF-8   -jar /Users/administrator/testdir/NetBeansProjects//JavaApplication1/dist/JavaApplication1.jar
   Fehler: Hauptklasse args-line konnte nicht gefunden oder geladen werden
   Ursache: java.lang.ClassNotFoundException: args-line
   
   It seems like NetBeans produces a command line which contains a "${debug-args-line}" which will not be resolved by Ant.
   
   ### How to reproduce
   
   1. Create an Ant Java project
   2. Edit the project settings to add a new configuration
   3. Add a new remote platform (if you are on a NonWindows system, you might use your localhost with default SSH port if ssh is enabled) - make sure to properly configure the remote platform
   4. Start debugging
   You will notice this error after starting to debug as it will be thrown into the Output tab
   
   
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.6 or earlier
   
   ### Operating System
   
   macOS 13.4 aarch64
   
   ### JDK
   
   11.0.19, OpenJDK, aarch64
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Workaround: if I open the build.xml file of my project in NetBeans and define the property debug-args-line with an empty value (like <property name="debug-args-line" value=""/>) it will start working.
   
   I've noticed that this issue was known in the old NetBeans Jira: https://issues.apache.org/jira/browse/NETBEANS-1425
   However this issue has not been migrated to Github and surely has not been fixed since the initial report.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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