You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Debasish Dutta Roy <de...@gmail.com> on 2006/06/27 17:46:15 UTC

Debug iBATIS source code thru myeclipse

Can I step into iBATIS source code while debugging my application?

How can I do that with myeclipse? The 3 iBATIS jar files does not contain
the source code.

Have anyone tried this.

Re: Debug iBATIS source code thru myeclipse

Posted by Debasish Dutta Roy <de...@gmail.com>.
Thanks I figured it out. I was looking to the source file zip actually.

On 6/27/06, Chris Lamey <cl...@localmatters.com> wrote:
>
> Hello,
>
> Debugging iBATIS source code is no different than debugging any third
> party libary in Eclipse.  iBATIS doesn't package its source in the jar file
> distribution, which is good because it'd just be extra disk space for most
> uses.
>
> For iBATIS, here's what I do to step through third party source:
>
> - Download the distribution from
> http://ibatis.apache.org/javadownloads.html
> - Unzip the distribution and put the iBATIS source zip file somewhere on
> your filesystem
> - Start up the application in the debugger
> - When you get to an iBATIS class you want to step into, hit F5
> - Eclipse should bring up the Class File Editor for that class
> - On the Class File Editor tab, click on the "Attach Source..." button
> - Browse to the iBATIS source zip file you downloaded
>
> That should do it.
>
> You can also attach either source directories or zip files in the Project
> Properties dialog:
>
> - Download the distribution from
> http://ibatis.apache.org/javadownloads.html
> - Unzip the distribution and put the iBATIS source zip file somewhere on
> your filesystem
> - Select the project in the Package Explorer
> - Right click (or hit Alt-Enter) and select Properties
> - Select the Libraries tabl
> - Find the iBATIS jar file
> - Click the arrow next to the iBATIS jar file and click it to expand the
> jar's children
> - Select the "Source Attachement" child of the jar
> - Select the "Edit" button on the left pane
> - Browse to the iBATIS source zip file you downloaded
>
> Cheers,
> Chris
>
> -----Original Message-----
> From: Debasish Dutta Roy [mailto:debasish.duttaroy@gmail.com]
> Sent: Tue 6/27/2006 9:46 AM
> To: user-java@ibatis.apache.org
> Subject: Debug iBATIS source code thru myeclipse
>
> Can I step into iBATIS source code while debugging my application?
>
> How can I do that with myeclipse? The 3 iBATIS jar files does not contain
> the source code.
>
> Have anyone tried this.
>
>
>

RE: Debug iBATIS source code thru myeclipse

Posted by Chris Lamey <cl...@localmatters.com>.
Hello,

Debugging iBATIS source code is no different than debugging any third party libary in Eclipse.  iBATIS doesn't package its source in the jar file distribution, which is good because it'd just be extra disk space for most uses.

For iBATIS, here's what I do to step through third party source:

- Download the distribution from http://ibatis.apache.org/javadownloads.html
- Unzip the distribution and put the iBATIS source zip file somewhere on your filesystem
- Start up the application in the debugger
- When you get to an iBATIS class you want to step into, hit F5
- Eclipse should bring up the Class File Editor for that class
- On the Class File Editor tab, click on the "Attach Source..." button
- Browse to the iBATIS source zip file you downloaded

That should do it.

You can also attach either source directories or zip files in the Project Properties dialog:

- Download the distribution from http://ibatis.apache.org/javadownloads.html
- Unzip the distribution and put the iBATIS source zip file somewhere on your filesystem
- Select the project in the Package Explorer
- Right click (or hit Alt-Enter) and select Properties
- Select the Libraries tabl
- Find the iBATIS jar file
- Click the arrow next to the iBATIS jar file and click it to expand the jar's children
- Select the "Source Attachement" child of the jar
- Select the "Edit" button on the left pane
- Browse to the iBATIS source zip file you downloaded

Cheers,
Chris

-----Original Message-----
From: Debasish Dutta Roy [mailto:debasish.duttaroy@gmail.com]
Sent: Tue 6/27/2006 9:46 AM
To: user-java@ibatis.apache.org
Subject: Debug iBATIS source code thru myeclipse
 
Can I step into iBATIS source code while debugging my application?

How can I do that with myeclipse? The 3 iBATIS jar files does not contain
the source code.

Have anyone tried this.