Intellij debugger does not stop at breakpoints

后端 未结 3 876
挽巷
挽巷 2021-01-11 10:23

I must be doing something wrong here. I am new to intellij. Making switch from eclipse. I have a JAX WS application that runs on weblogic. The artifact to deploy is an ear f

3条回答
  •  攒了一身酷
    2021-01-11 11:07

    To setup WebLogic debugging on IntelliJ:

    1. Find the WebLogic Debug Port: this is the port on WebLogic exposed for debugging. The default debug port is 8453 but if it was changed you can find it in the config.xml (under the config folder in your domain home) or the setDomainEnv.sh look for DEBUG_PORT (I assume it is .sh and not .bat as you appear to be using Mac OS X).

    2. Remote Debugger Configuration: go to the configuration and choose new, then select "Remote" ,type in any name that is sensible and under the port (orange block in image) type in the value you found in 1. For host (the green block) type localhost [a side note: you can connect to a remote server by typing that servers host name or IP if the debug port is exposed].

    3. Start debugger: Start the debug configuration you just setup, the debug window will pop up and if the port is correct it will say it has connected to remote host and you are good to go debugging.

    IntelliJ remote Debugger

    --Edit 1--

    Read your question again missed the part about you already having setup the remote config.

    It may be missing the breakpoint if your program is multi-threaded the breakpoint may not be hit on the current thread you are on.

    There is a drop down in the debugger when you have the remote configuration working where you should be able to select the thread to debug on.

    -- Edit 2 --

    Added the image for the remote debugger settings

提交回复
热议问题