Hello everybody,
I have found a message from Alessandro Vernet on 14. Oct 2004 about remote debugging OPS from Intellij (see below). Unfortunately, question 2.26 of the FAQ doesn't exist anymore. I tried to connect to log4j according to the OPSMonitor entry in the "\WEB-INF\resources\config\log4j.xml" file: ... <!-- This is the OPS Studio monitor --> <appender name="OPSMonitor" class="org.apache.log4j.net.SocketHubAppender"> <param name="Port" value="4446"/> <param name="LocationInfo" value="true"/> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="debug" /> </filter> </appender> ... !-- This is the root logger --> <root> <priority value="debug"/> <appender-ref ref="ConsoleAppender"/> <appender-ref ref="OPSMonitor"/> </root> ... But connecting with Intellij to localhost, port 4446, mode "transport", "socket" doesn't work. Any ideas? Best regards, Stefan >I usually start Tomcat from Eclipse and debug it from *IntelliJ*. I do >this as explained on question 2.26 of the FAQ >(http://www.orbeon.com/community/faq). Dan might know more on starting >Tomcat and debugging it directly from Eclipse (instead of starting the VM >in debug mode and connecting to it from a "remote" debugger). > >Alex -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Stefan,
Java debugging and XPL debugging are two completely different things. If you are talking about *Java* debugging, then you should set debugging options on your Java VM command-line. For example, I use, with Tomcat: set CATALINA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=javadebug -Xms128m -Xmx250m The above use shared memory, but you can also configure debugging with socket settings. I don't have those handy, but you will find them in your Java VM doc. If you are talking about monitoring events produced in OPS through log4j (including XPL @debug attributes), THEN you can use the Eclipse OPS Studio plugin to connect to the SocketHubAppender you have defined below in your log4j.xml file. You can also connect using a viewer like Chainsaw. The benefit of the Studio monitor is that it formats XML documents. -Erik Stefan Mueller wrote: > Hello everybody, > > I have found a message from Alessandro Vernet on 14. Oct 2004 about > remote debugging OPS from Intellij (see below). Unfortunately, question > 2.26 of the FAQ doesn't exist anymore. I tried to connect to log4j > according to the OPSMonitor entry in the > "\WEB-INF\resources\config\log4j.xml" file: > ... > <!-- This is the OPS Studio monitor --> > <appender name="OPSMonitor" > class="org.apache.log4j.net.SocketHubAppender"> > <param name="Port" value="4446"/> > <param name="LocationInfo" value="true"/> > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > <param name="LevelMin" value="debug" /> > </filter> > </appender> > ... > !-- This is the root logger --> > <root> > <priority value="debug"/> > <appender-ref ref="ConsoleAppender"/> > <appender-ref ref="OPSMonitor"/> > </root> > ... > But connecting with Intellij to localhost, port 4446, mode "transport", > "socket" doesn't work. > Any ideas? > > Best regards, > Stefan > > > > >I usually start Tomcat from Eclipse and debug it from *IntelliJ*. I > do >this as explained on question 2.26 of the FAQ > >(http://www.orbeon.com/community/faq). Dan might know more on starting > >Tomcat and debugging it directly from Eclipse (instead of starting the > VM >in debug mode and connecting to it from a "remote" debugger). > > > >> Alex Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
On 6/13/06, Erik Bruchez <[hidden email]> wrote:
> The above use shared memory, but you can also configure debugging with > socket settings. I don't have those handy, but you will find them in > your Java VM doc. For reference, I am using the following command line parameters to use a socket connection: -Xms512m -Xmx512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6005 Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Now it works!
Thank you! Stefan Alessandro Vernet wrote: > On 6/13/06, Erik Bruchez <[hidden email]> wrote: >> The above use shared memory, but you can also configure debugging with >> socket settings. I don't have those handy, but you will find them in >> your Java VM doc. > > For reference, I am using the following command line parameters to use > a socket connection: > > -Xms512m -Xmx512m -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6005 > > Alex > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |