Start Wildfly in debug mode

Asked

Viewed 882 times

2

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

standalone.bat --debug 

But it’s a little convenient to have to open the cmd for that. Has how I open this file and put some configuration so that being so I just take 2 clicks on the file to start it in mode debug ?

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
)

That way it sets up to debug whether or not to flag


Ababei by analyzing the file better, there is an easier way, right at the beginning of the archive there is a line with the content set DEBUG_MODE=false, just define DEBUG_MODE as true, the effect is exactly the same, but requires less file changes and is probably correct for this purpose.

  • He doesn’t seem to be going yet.

  • I did the test with both ways, both it presents the message Listening for transport dt_socket at address: 8787

  • For me too, but in practice it won’t, I may be doing something wrong but it’s a simple JSF screen test.

  • Below set DEBUG_MODE there is also set DEBUG_PORT, you can configure the debug port in this variable too

Browser other questions tagged

You are not signed in. Login or sign up in order to post.