You need to pass the -agentlib:… as <jvmArgs> of the appengine plugin, as 
it will fork a new JVM
https://cloud.google.com/appengine/docs/legacy/standard/java/maven-reference#appenginerun

On Thursday, June 27, 2024 at 7:15:26 PM UTC+2 [email protected] wrote:

> Hi,
>
> Can anyone help me get remote jdwp server debugging in Eclipse working? I 
> seem to be able to get a server running but it won't halt on breakpoints.
>
> I run as.. "Maven Build" with goals of 'clean install appengine:run' and 
> vm arguments of 
> '-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000'
> [image: run debug.png]
> [image: run debug 2.png]
>
> The Console says "Listening for transport dt_socket at address: 8000"
>
> Then I "Debug as..." "Remote Java Application"...
> [image: remote debug 1.png]
>
> And the console starts up again with the 'clean install appengine:run' 
> finishing up with the usual:
> Started NetworkTrafficSelectChannelConnector {HTTP/1.1, 
> (http/1.1)}{localhost:8080}
>
> At which point I can browse to http://localhost:8080 but none of my 
> breakpoints will trigger.
>
> Please, what am I doing wrong? I've not done java remote debugging before 
> :-(
> Regards
> Daniel
>
>
> On Thursday 27 June 2024 at 16:21:17 UTC+1 Daniel Webb wrote:
>
>> Thanks Ralph, So it's source map debugging in chrome for the client side, 
>> jdwp remote debugging for the server side.
>>   
>> On Tuesday 25 June 2024 at 14:09:20 UTC+1 Ralph Fiergolla wrote:
>>
>>> Hi! Unless you want to invest time and effort in getting eclipse plugins 
>>> up and running, I would suggest using your browser's development tools 
>>> (Ctrl+Shift+I in Chrome/Edge) to debug the client side. Thanks to source 
>>> maps it will show your JAVA source code when debugging. 
>>> To debug the server side, you need to start your server with "-Xdebug 
>>> -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n" and create a 
>>> debug configuration to connect to port 8000 in Eclipse.
>>> Good luck
>>> Ralph
>>>
>>> On Mon, Jun 24, 2024 at 11:19 AM 'Daniel Webb' via GWT Users <
>>> [email protected]> wrote:
>>>
>>>> Hi, 
>>>> Is it possible to debug GWT projects - setting breakpoints and stepping 
>>>> through code? This would be server and/or client debugging.
>>>>
>>>> We've just had our internal GWT based app updated and it now uses maven 
>>>> to run (clean install appengine:run). The eclipse plugin based debugging 
>>>> technique that I used to use no longer seems to work.
>>>>
>>>> Thanks for any advice, I really like GWT but I'm lost as to how it all 
>>>> works!
>>>> Daniel
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "GWT Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-web-toolkit/253e328a-484c-4c19-aaf7-e489780c3c0bn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-web-toolkit/253e328a-484c-4c19-aaf7-e489780c3c0bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/6132df38-5577-4ff8-ba08-1ea5a4edbd24n%40googlegroups.com.

Reply via email to