I figured out what my issue was and I think the problem is specific to me and the nature of my application. Actually I should call it a self induced issue. Let me explain the nature of events.

  1. I have been using eclipse to develop and have a local install of weblogic instance. My application needs coherence cache server and I have few other JVM parameters that I pass when starting the domain. Therefore I had added a line at the start of the $DOMAIN_HOME/bin/setDomainEnv.sh file like so

    JAVA_OPTIONS="- Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.wka=devmachine and blah blah blah

  2. I switched to intellij and started working on this project and then configured the weblogic plugin and run configuration etc.

  3. I noticed that intellij adds a JAVA_OPTIONS in the startup/connection tab in Run/Debug Configurations like so

  1. However the JAVA_OPTIONS that was being passed by intellij was not being used by weblogic. I believe it was overridden with what was in the setDomainEnv.sh which is why I saw the following logs.

java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) Starting WLS with line: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -client -Xms512m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/Users/dparupud/omw/oracle/middleware/weblogic_10.3.6/wlserver_10.3/server/lib/weblogic.policy -Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.wka=devmachine blah blah blah......

  1. When I went and removed the JAVA_OPTIONS from setDomainEnv.sh and restarted the server from intellij I saw the following log

starting weblogic with Java version: java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) Starting WLS with line: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -client -Xms512m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/Users/dparupud/omw/oracle/middleware/weblogic_10.3.6/wlserver_10.3/server/lib/weblogic.policy - agentlib:jdwp=transport=dt_socket,address=127.0.0.1:65501,suspend=y,server=n

Now the log showed that the jdwp agent was in action. I did notice that I did not see that particular log before I asked the Question on SO but I thought maybe IntelliJ was doing something inside the covers because JAVA_OPTIONS was being passed and intellij does not allow you to mess with that ( it is readonly).

I guess I can either pass all my jvm parameters either from intellij or add the jdwp agent info in the setDomainEnv.sh.

Now I am able to debug.

Answer from datta on Stack Overflow
🌐
Reddit
reddit.com › r/intellijidea › intellij debugger no longer stops at breakpoints
r/IntelliJIDEA on Reddit: IntelliJ debugger no longer stops at breakpoints
February 8, 2023 -

Using IntelliJ Community Edition 2022.3.2 for Windows, I was debugging just fine until I decided to run some unit tests manually by going to the file in the proyect explorer, double clicking it and selecting "run". As a result, the debugger (Remote JVM Debug) no longer stops at breakpoints.

My best guess is that running the unit test created another JVM or Java Project and the debugger attachs to it whenever I run it but I tried restarting my PC to kill all processes and did´t work. Also tried uninstalling Tomcat and IntelliJ because I notice that before running the unit test, it built the proyect and that´s something I never do using the IntelliJ Build Project tool, I always do it via CMD

I created a post in StackOverflow but got no answer. Pelase feel free to check the post asi i added a lot more information there.

Any kind of information or workaround I can try is welcome, i have been struggling with this issue for 2 days now.

🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206993325-Debugger-not-stopping-at-breakpoints-after-first-time
Debugger not stopping at breakpoints after first time – IDEs Support (IntelliJ Platform) | JetBrains
Removing the Javarebel Debugger plugin solved this problem. ... There is a new version of the plugin available (either use the update site or here is the link http://plugins.intellij.net/plugin/?id=1699).
Discussions

java - IntelliJ IDEA 2017.1 does not stop on breakpoints - Stack Overflow
After switching to bootRun, breakpoints immediately started working. ... This problem happens due to different reasons and you could find some of the answers on Intellij Community pages. That being said, one of the most common reasons are build plugins. If you really don't need the build plugins you could disable them and try again: ... Although 2017.1 is long past this is the top answer for "intellij debugger not stopping at ... More on stackoverflow.com
🌐 stackoverflow.com
java - IntelliJ IDEA: Breakpoint not being hit, and is shown without the tick, just a red dot - Stack Overflow
Did some searching through IntelliJ Help PDF: Help Doc pg. 431 · Their documentation Describes the checkmark as "Shown at run-time when the breakpoint is recognized by the debugger as set on an executable code line." More on stackoverflow.com
🌐 stackoverflow.com
Doesn't stop at breakpoints on IntelliJ 2020.1
When I run jetty-runner as a debug mode, it doesn't stop at my breakpoints. It just runs like non-debug mode. IntelliJ version is 2020.1 and it is the same on 2020.1.1 too. More on github.com
🌐 github.com
2
April 30, 2020
debugging - Debugger does not stop on breakpoints in simple Maven project in IntelliJ 2017.1 - Stack Overflow
Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... Into IntelliJ 2017.1 RC, I imported a simple Maven project created with the Quickstart Archetype. When clicking the green-bug-icon to run in debug mode, the debugger panel does appear. Clicking the View Breakpoints ... More on stackoverflow.com
🌐 stackoverflow.com
Top answer
1 of 4
10

I figured out what my issue was and I think the problem is specific to me and the nature of my application. Actually I should call it a self induced issue. Let me explain the nature of events.

  1. I have been using eclipse to develop and have a local install of weblogic instance. My application needs coherence cache server and I have few other JVM parameters that I pass when starting the domain. Therefore I had added a line at the start of the $DOMAIN_HOME/bin/setDomainEnv.sh file like so

    JAVA_OPTIONS="- Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.wka=devmachine and blah blah blah

  2. I switched to intellij and started working on this project and then configured the weblogic plugin and run configuration etc.

  3. I noticed that intellij adds a JAVA_OPTIONS in the startup/connection tab in Run/Debug Configurations like so

  1. However the JAVA_OPTIONS that was being passed by intellij was not being used by weblogic. I believe it was overridden with what was in the setDomainEnv.sh which is why I saw the following logs.

java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) Starting WLS with line: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -client -Xms512m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/Users/dparupud/omw/oracle/middleware/weblogic_10.3.6/wlserver_10.3/server/lib/weblogic.policy -Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.wka=devmachine blah blah blah......

  1. When I went and removed the JAVA_OPTIONS from setDomainEnv.sh and restarted the server from intellij I saw the following log

starting weblogic with Java version: java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) Starting WLS with line: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -client -Xms512m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/Users/dparupud/omw/oracle/middleware/weblogic_10.3.6/wlserver_10.3/server/lib/weblogic.policy - agentlib:jdwp=transport=dt_socket,address=127.0.0.1:65501,suspend=y,server=n

Now the log showed that the jdwp agent was in action. I did notice that I did not see that particular log before I asked the Question on SO but I thought maybe IntelliJ was doing something inside the covers because JAVA_OPTIONS was being passed and intellij does not allow you to mess with that ( it is readonly).

I guess I can either pass all my jvm parameters either from intellij or add the jdwp agent info in the setDomainEnv.sh.

Now I am able to debug.

2 of 4
5

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.

--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

🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 10000635378450-IntelliJ-debugger-no-longer-stops-at-breakpoints
IntelliJ debugger no longer stops at breakpoints – IDEs Support (IntelliJ Platform) | JetBrains
February 8, 2023 - Use TcpView to ensure it's a correct Tomcat instance listening for debugger on port 8000. Make a change in your code like adding a logging statement, put a breakpoint on this line, build/deploy the new app, restart Tomcat.
🌐
JetBrains
jetbrains.com › help › idea › using-breakpoints.html
Breakpoints | IntelliJ IDEA Documentation
1 week ago - To do this, go to Settings | Build, Execution, Deployment | Debugger and select Drag to the editor or click with the middle mouse button. Clicking a breakpoint will then enable or disable it.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 6796164198546-Intellij-not-stopping-at-breakpoints
Intellij not stopping at breakpoints – IDEs Support (IntelliJ Platform) | JetBrains
If you really need to use Maven goal for debugging you need to add debug arguments to the process which runs the boot run maven goal, see https://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/maven-plugin/examples/run-debug.html And then connect to this process from IDE using Remote debug run configuration: https://www.jetbrains.com/help/idea/2020.2/run-debug-configuration-remote-debug.html
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360009272660-IntelliJ-IDE-2020-1-2-debugger-not-stopping-at-breakpoints
IntelliJ IDE 2020.1.2 debugger not stopping at breakpoints – IDEs Support (IntelliJ Platform) | JetBrains
With this option enabled, WebStorm uses the NODE_OPTIONS environment variable to pass the debug flags to node.js processes. For some reason this doesn't work in your environment - the variable is either not set or overwritten... ... I have disabled this option and still cannot pause execution and the debugger does not stop at breakpoints by default.
Find elsewhere
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360008938559-Debugging-Tomcat-does-not-stop-at-breakpoints
Debugging Tomcat does not stop at breakpoints – IDEs Support (IntelliJ Platform) | JetBrains
I run Tomcat from IDEA run config, using an artifact configured within IDEA. I have breakpoints set. When running in debug mode, it never stops at the breakpoints. Standard processes started from main method do stop at breakpoints. I don't have breakpoints muted. I saw this with 2020 and 2018 versions of Intellij.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206582525-Debugger-doesn-t-stop-at-breakpoint-
Debugger doesn't stop at breakpoint. – IDEs Support (IntelliJ Platform) | JetBrains
October 8, 2014 - So all files under this folder didn't halt on breakpoints. After changing the entry in proj file to the correct spelling, everything is working again. Maybe this helps other people having the same problem... ... I had this problem. I had created a new project and the debugger would not work with the files in the new project.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360000591124-Java-debugger-doesn-t-stop-at-breakpoints
Java debugger doesn't stop at breakpoints – IDEs Support (IntelliJ Platform) | JetBrains
May 19, 2018 - Created simple console app, put a breakpoint at System.out.println("Hello"); inside main() - doesn't stop. package com.company; public class Main { public static void main(String[] args) { System.out.println("Hello"); } } Created kotlin project - works just fine. Same with Scala - works fine. Tried to pause in Java code, it shows some frames, even some local vars, but there is red line - "target vm is not paused by breakpoint request. Evaluation is not possible in this mode". Invalidated caches and restarted, didn't help. IntelliJ IDEA 2018.1.3 (Ultimate Edition) Build #IU-181.4892.42, built on May 8, 2018 JRE: 1.8.0_152-release-1136-b38 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-296707 › Debugging-tests-from-IntelliJ-202132-does-not-stop-at-breakpoints
Debugging tests from IntelliJ 2021.3.2 does not stop at ...
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206196499-Debugger-not-stopping-at-breakpoints-Confused-
Debugger not stopping at breakpoints. Confused. – IDEs Support (IntelliJ Platform) | JetBrains
October 27, 2013 - So if the class you are debugging is not from libraries, but from one of your modules, it should be recursively reacheable via module dependencies from the module that it specified in the run configuration. ... Thanks Graham. Let me check this out later. That might be the problem. *Crossing my fingers.* ... I am developing Ruby on Rails application in IntelliJ IDEA Ultimate 2020.01 , and suddenly started facing issues with stopping on the breakpoints during debugging.
🌐
JetBrains
youtrack.jetbrains.com › issue › idea-86465
Debugger does not stop at break points : IDEA-86465
July 1, 2020 - {{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
JetBrains
youtrack.jetbrains.com › issue › SCL-19797 › Debugger-doesnt-stop-on-breakpoints-when-debugging-play-application
Debugger doesn't stop on breakpoints when debugging ...
February 27, 2023 - {{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
GitHub
github.com › guy-keller › jetty-runner › issues › 71
Doesn't stop at breakpoints on IntelliJ 2020.1 · Issue #71 · guy-keller/jetty-runner
April 30, 2020 - When I run jetty-runner as a debug mode, it doesn't stop at my breakpoints. It just runs like non-debug mode. IntelliJ version is 2020.1 and it is the same on 2020.1.1 too.
Author   kyungwooHyun
🌐
GitHub
github.com › intellij-rust › intellij-rust › issues › 9464
Debugger doesn't always suspend on breakpoint · Issue #9464 · intellij-rust/intellij-rust
October 5, 2022 - Please look at the example of code at the bottom. (1) If I uncomment example 1, place breakpoints 1, 3, and launch the debugger => it doesn't stop at the breakpoint in main(), neither in subroutine().
Author   blueglyph
🌐
GitHub
github.com › GoogleCloudPlatform › cloud-code-intellij › issues › 3122
Breakpoints not hit in debug mode on intellij · Issue #3122 · GoogleCloudPlatform/cloud-code-intellij
January 9, 2023 - (Please ensure you are running the latest version of Cloud Cloud IntelliJ with Help > Check for Updates.) ... Normal breakpoint behavior when running debug mode, like pausing at breakpoints. ... Trying to run the guestbook application. I can see the output in the terminal indicating there might be a problem connecting with the debugger.
Author   scottiedog45