On 6/20/23 05:58, Nick Couchman wrote:
On Tue, Jun 20, 2023 at 8:52 AM Hoermanseder, Roland
...
I was successful to debug the guacamole war file via maven "install" in vscode
(.java) and in Browser (angular.js) via webpack development mode.
But how do I include an extension jar file to the guacamole war file for
debugging?
Is it only possible via log files? Is there no possibility for breakpoints.
I'm sure it's possible, but I'm not familiar with how to do it, nor do
I have any documentation for it. Maybe someone else on the mailing
list has done it and can shed some light. I don't use vscode, and I
don't generally debug my extensions using breakpoints with an IDE.
I also do not use VS Code for working with Java (I greatly prefer
NetBeans), but I have debugged extensions with an IDE and can speak to
that a bit.
The standard Java debugging mechanism is JPDA. When I use NetBeans to
deploy and test Guacamole, I use its managed deployment capabilities to
automatically deploy the .war to a Tomcat installation I previously
registered with NetBeans. It automatically takes care of starting Tomcat
with JPDA enabled, attaching itself to that, etc. As long as the version
of the source that I have open matches what's deployed, the Java
debugger easily handles breakpoints and watches correctly, including
Guacamole extensions.
As long as VS Code has some sort of Java debugging capability, I would
expect it to also use JPDA and to work in the same way. You shouldn't
need to do anything particularly special - your IDE should just
recognize that a file you have open matches classes in use by the
running JVM. It shouldn't matter if those classes are use because Tomcat
loaded it from a .war or because Guacamole loaded it from a .jar; it's
all just classes loaded by the JVM and exposed via JPDA.
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]