Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change default mvnDebug port

Tags:

maven

I am trying to change the default mvnDebug port - can anyone walk me through the steps to do this? I have tried resetting MAVEN_DEBUG_OPTS, but this has not worked for me. Thanks so much!

like image 327
Sally L Avatar asked Nov 01 '17 23:11

Sally L


People also ask

What is mvnDebug?

mvnDebug - Command to start the Maven system in Debug mode.


1 Answers

You can change your port in mvnDebug.bat

set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000

or if you want to set through command line you can copy mvnDebug.bat to newMvnDebug.bat by commeting out the line

MAVEN_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000

and then try setting MAVEN_DEBUG_OPT via command line

like image 77
Charmy Garg Avatar answered Sep 19 '22 14:09

Charmy Garg