I would like to be able to set breakpoints on source code inside the container of a local instance of JBoss and follow what happens in the container when my JEE application invokes HttpServletRequest#logout().
1. I downloaded the correct version of JBoss source code and extracted it onto my local file system. Next, I added the source code to the JBoss Application Servers configuration e.g. File -> Settings -> Application Servers and then clicked on the Plus button in Libraries and added the source code. But this did not work. I could set a breakpoint but the code execution did not stop at the breakpoint. The file I opened to set the breakpoint had a yellow tab unlike the normal-colored tabs of my application's source code files. What does it mean when you open a .java file and the tab is yellow?
Moreover, some of the imports of the .java file cannot be found, such as the following:
I presume the JAR files for these imports exist inside my JBoss installation, which I'm already using successfully to run and debug my application's source code. I'm reluctant to add Catalina JARs to the intelliJ Application Server Library because I don't want to mess up my JBoss configuration.
2. My next step was to add the JBoss source code to the Global Library e.g. File -> Project Structure -> Platform Settings -> Global Libraries, then click on the Plus button and select New Global LIbrary ->Java, and finally click on the Plus button and select "Attach Files or Directories" and add the JBoss source code there. I was happy to see that intelliJ processed the source files, indexing them. I was sure that now the breakpoint would work. It did not work. I restarted intelliJ and tried again. The breakpoint still did not work and the JBoss .java file continues to have a yellow tab.
What am I doing wrong?