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. Thanks alot. Regards, Dandre
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. -Vincent ___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
On Fri, Feb 02, 2007 at 09:27:04AM +0100, Vincent Massol wrote:
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. Philippe
Hi Philippe, On Feb 2, 2007, at 9:59 AM, Philippe Marzouk wrote:
On Fri, Feb 02, 2007 at 09:27:04AM +0100, Vincent Massol wrote:
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.
Cool. I've started a documentation page with all these ideas: http:// www.xwiki.org/xwiki/bin/view/Community/Debugging Let's all contribute and enhance this page! Thanks -Vincent ___________________________________________________________________________ Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire. http://fr.mail.yahoo.com
participants (3)
-
Dandre -
Philippe Marzouk -
Vincent Massol