On Feb 2, 2007, at 8:10 AM, Dandre wrote:
  Hello Vincent and everyone at XWiki!
 I am going through the code but I need to view how XWiki is
 generating SQL queries that are sent to the JDBC driver in order to
 see if it's XWiki that has a problem or Hibernate or the JDBC
 driver. Yes, I am working with Fabian and them to try and figure
 out why Postgres gives a problem when porting from an old DB.
 Could you guys maybe give me instructions of how to turn on debug
 mode. 
 Which IDE are you using? I've planned to write documentation on how
 to debug XWiki from within IntelliJ IDEA. If you need it I can do it
 sooner rather than later.
 If you're using Eclipse, I haven't done it yet (I use IDEA).
 Another solution if you're focusing on the Database is to turn on
 logging in postgreSQL so that you can view all queries executed. But
 that may not be enough. I'd suggest debugging from your IDE, ie
 starting xwiki from your IDE.
 Last you could start the JVM in debug mode and then do remote
 debugging using your IDE.
 There might be other solutions that I'm not aware of.
 
 Another solution would be to modify log4j.properties to put
 hibernate or
 whatever class you want in debug mode then rebuild and redeploy.