Forum Statistics

  • Forum Members: 4,499
  • Total Threads: 3,656
  • Total Posts: 75
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 06-14-2009, 12:20 AM   #1 (permalink)
 
Status: Newbie
Join Date: Jun 2009
Posts: 4

Rep Power: 12 Annu is on a distinguished road



Default How to debug the MT's java code

To modify the existing migration code or to do a bugfix yourself you should use Eclipse.

After installing Eclipse you should run this short debugging test to see if everything is in place.

1) Start Eclipse.
2) Open the project found in [installdir]\java ^*
3) Open BaseJava.java from the com.mysql.grt.modules package.
4) Set a breakpoint in public static String engineVersion() on the return statement (with Ctrl+Shift+B)
4a) If the breakpoint is displayed as a small red square, select Project > Clean and clean all projects. After the rebuild is complete the breakpoint should be visualized with a blue dot.
6) Start the GRT shell with grtsh -verbose -debug
7) In Eclipse now select Run > Debug ... from the main menu. Select Remote Java Application and press [New]. Choose Connection Type: Standard (Socket Attach), Host: localhost, Port: 8000
8) Click the [Debug] button.
9) Now the blue breakpoint should have an additional checkmark, notifying that Eclipse will actually hold there.
10) Back in the GRT shell, execute \ > print(BaseJava:engineVersion())
11) If everything is configured correctly, Eclipse will ask to switch to the Debugging perspective. After doing so the line with the breakpoint will be highlighted.
12) Press F8 to continue. The GRT shell should print information about the Java engine.

^* The current release ships with an outdated [installdir]\java\.classpath file. The <classpathentry> to path="lib/mysql-connector-java-3.1.6-bin.jar" needs to be updated to path="lib/mysql-connector-java-3.1.10-bin.jar" and the entry for path="lib/ojdbc14.jar" needs to be removed before opening the project in Eclipse. This is now fixed and will be in the next release, thanks to Thorbjørn Weidemann for pointing this out.


After you have completed this simple test, you can start the Migration Toolkit with the -debug option. You can set breakpoints in all other modules like ReverseEngineeringOracle or MigrationOracle and step through the code with F5 (step in) and F6 (step over).

To inspect a variable, place the cursor on it and press Ctrl+Shift+I. For more information please read the Eclipse documentation.


In the Migration Toolkit you can select Tools > GRT Environment Shell or press F4 to get the X GRT shell. The GRT Globals Tree gives you access to the application's data. We are working on more documentation about the GRT Environment to make it easier to customize the Migration Toolkit.

_______________________

How to debug the MT's java code
Annu is offline Add Infraction for Annu   Reply With Quote
Old 01-23-2010, 08:48 AM   #2 (permalink)
 
Status: On a mission
Join Date: Nov 2009
Posts: 34

Rep Power: 14 vikas1234 is on a distinguished road



Default

its a duplicate post
vikas1234 is offline Add Infraction for vikas1234   Reply With Quote
Old 03-09-2010, 10:19 AM   #3 (permalink)
bodyboard662
 
Status: Guest
Posts: n/a



Default

Its Very Useful For Me
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 12:40 AM   #4 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Default office coffee system

Hey guys i want to due with you a peice of software that submits your articles (Blogs) and multiple websites very easyily and starve oneself, making your locality get LOADS more visitors. Just deem a perceptive look at their website, if you own a website/want to make sole and lack to make alot of pelf then this is definatly something you should take a summary look at.
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 12:54 AM   #5 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Lightbulb shade grown coffee

buy cialis >:((( cheap auto insurance quotes 624224 home insurance oljxd viagra xsegkn
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 01:00 AM   #6 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Default specialty gourmet coffee

Certainly glittering post guys, been following your blog in compensation 3 days at the moment and i should reveal i am starting to like your post. and right away how do i subscribe to your blog?
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 01:44 AM   #7 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Default fair trade gourmet coffee

Danged assets c incriminating evidence article, poetically written and very intelligence out.
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 01:56 AM   #8 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Angry high protein food

louisiana homeowners insurance 686 car insurance quotes 8((( cialis levitra vs 3036
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 02:02 AM   #9 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Default cheap gourmet coffee

Such a well written post.. Thnkx for sharing this mail!
  Edit/Delete Message Reply With Quote
Old 02-11-2011, 07:14 PM   #10 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Smile cool poems

buy valtrex 8PP prescription online consultation propecia >:-OOO best life insurance >:-OO prednisone rnmbk
  Edit/Delete Message Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2