Start Wildfly in debug mode

2

Starting Wildfly in eclipse in debug mode is simple. I want to start via command line by running standalone.bat . So far so good, but I want to start in debug mode and under normal conditions I can open my cmd and run the command:

standalone.bat --debug 

But it's a bit convenient to have to open cmd for this. Is there a way to open this file and put some configuration so that by doing so I simply give 2 clicks on the file to start it in debug mode?

    
asked by anonymous 21.02.2017 / 23:45

1 answer

1

Just edit the file and in:

if "%~1" == "" (
   goto MAIN
) else if "%~1" == "--debug" (
   goto READ-DEBUG-PORT
) else if "%~1" == "-secmgr" (
   set SECMGR=true
)

Switch to:

if "%~1" == "" (
   goto READ-DEBUG-PORT
) else if "%~1" == "--debug" (
   goto READ-DEBUG-PORT
) else if "%~1" == "-secmgr" (
   set SECMGR=true
)

In this way it sets to debug passing or not flag

I've just gone through a better analysis of the file, there is an easier way, at the beginning of the file there is a line with the content set DEBUG_MODE=false , just set DEBUG_MODE to true , the effect is exactly the same but requires less file changes and is probably the right one for that purpose.

    
21.02.2017 / 23:59