Failed to start server in debug mode

Hi,

I created a new server, enabled debugging while setting it up. I started my server like

mvn openmrs-sdk:run -DserverId=myserver -Ddebug

But when I access http://localhost:1044/openmrs/login.htm I get this error.

Debugger failed to attach: handshake failed - received >GET /openmrs/l< - expected >JDWP- 
Handshake<
Debugger failed to attach: handshake failed - received >GET /openmrs/l< - expected >JDWP- 
Handshake<
Debugger failed to attach: handshake failed - received >GET /openmrs/l< - expected >JDWP- 
Handshake<
Debugger failed to attach: handshake failed - received >GET /openmrs/l< - expected >JDWP- 
Handshake<

what could I be missing.

cc: @dkayiwa

Why did you try to use the 1044 as the port in the browser? Actually browser HTTP protocol(for GET) will work on the 8080(or other openmrs run time port). You can connect a debugger with 1044 port to start your debugging. AFAIK you can’t connect the debugger port through the browser.

If you have Intellij, then setup a Remote debugger which can listed to 1044, and run it to connect with the openmrs debugging port.

Your the only angel around for my rescue @suthagar23

To be honest, I’m a newbie here, I have not used this debugging thing before. I’m using eclipse, could you direct me on how to connect to the debugging port?

Haa haaa

To be honest, I touched the eclipse about 2 years before since I am using the Intellij :smile: . Can you have a look at here and there? Hope you can get it!