Hi Michael

I am trying to configure an application server (Tomcat) with Netbeans, but it 
throws below message

The specified Server Location (Catalina Home) folder is not valid

How did you configure Tomcat Application Server into Netbeans?

-Gabriel

-----Mensaje original-----
De: Michael Jumper <mjum...@apache.org> 
Enviado el: miércoles, 21 de junio de 2023 05:23 p. m.
Para: user@guacamole.apache.org
Asunto: Re: EXT: Re: vscode extension debugging documentation

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: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org

Reply via email to