As the title says ...
I think the info on
https://github.com/LWJGLX/debug is a bit minimalistic for novice programmers ...
This is what I have done so far :
- * create a new Maven project
- * copy the pom.xml from the Github site into the project
- * run the maven goal 'package'
This results in 3 jar files and a pom.
In my game project : add a new dependency with the path to the jar (from the other project).
<dependency>
<groupId>org.lwjglx</groupId>
<artifactId>lwjglx-debug</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>D:\nb\XDEBUG\lwjglx-debug-1.0.0.jar</systemPath>
</dependency>
This adds the debug.jar in my game project.
But I didn't manage to get any further ...
I modified the existing action 'debug project' a little bit (added the -javaagent bit to the 'properties') :
exec.args=-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address} -javaagent:"D:\nb\XDEBUG\lwjglx-debug-1.0.0.jar" -classpath %classpath be.gameproj.Main
exec.executable=java
jpda.listen=true
and left the 'execute goals' the way they were :
process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
The error I get :
--- exec-maven-plugin:1.5.0:exec (default-cli) @ Game_Proj ---
Exception in thread "main" java.lang.ClassNotFoundException: org.lwjglx.debug.Agent
I have no clue what to try next ...
This is NetBeans 10 on Window (bundled Maven)