Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Re: [cdt-dev] Debug Java Class from within a C program

I'm not entirely sure what you mean by "integrated debugging" ... what I 
was talking about was really quite painful ... 

The product I was working on was a hybrid COM/Java product with parts of 
it built w/Visual C++ 6, VS.NET 7.0, & some pure Java as well. 
I would usually launch from VS.NET, attach a VC 6 debugger through the 
standard "Debug Process" menu, and attach via Eclipse the same way (by 
specifying the port that we were listening upon using the -Xdebug JVM 
options).  There was a  registry key entry that would allow us to specify 
the port that the JVM would expect attachments upon when it started up. 

After that, it was simply a matter of setting breakpoints on both sides of 
the JNI bridges in the appropriate debuggers so that Step-Over within 
Eclipse would break in VS.NET, and vice-versa. 

JohnC




Amit Aghara <aaghara@xxxxxxxxxx> 
Sent by: cdt-debug-dev-admin@xxxxxxxxxxx
07/18/2003 03:11 AM
Please respond to
cdt-debug-dev@xxxxxxxxxxx


To
cdt-debug-dev@xxxxxxxxxxx
cc

Subject
[cdt-debug-dev] Re: [cdt-dev] Debug Java Class from within a C program










JohnC........would you be willing to share with us the steps or hoops 
which
you had to go thru to setup Eclipse-JDT & MSVC integrated debugging ?
Thanks.

Regards,
- Amit Aghara



|---------+---------------------------->
|         |           John Camelon     |
|         |           <jcamelon@xxxxxx.|
|         |           com>             |
|         |           Sent by:         |
|         |           cdt-dev-admin@ecl|
|         |           ipse.org         |
|         |                            |
|         |                            |
|         |           07/17/2003 09:58 |
|         |           AM               |
|         |           Please respond to|
|         |           cdt-dev          |
|         |                            |
|---------+---------------------------->
 
>----------------------------------------------------------------------------------------------------------------|
  |                                         |
  |       To:       cdt-dev@xxxxxxxxxxx       |
  |       cc:                                         |
  |       Subject:  Re: [cdt-dev] Debug Java Class from within a C program 
                                        |
  |                                         |
 
>----------------------------------------------------------------------------------------------------------------|




In general for debugging JNI code, I would just attach 2 debuggers to the
same process, set breakpoints on both sides of the JNI bridge and take my
time ...
Whether or not you can do this w/one Eclipse or 2 instances of Eclipse I
have not tried, but I have done it w/JDT & MSVC.

JohnC



Raghavendra R <raghav@xxxxxxxxxxxxx>
Sent by: cdt-dev-admin@xxxxxxxxxxx
07/17/2003 05:46 AM
Please respond to
cdt-dev@xxxxxxxxxxx


To
cdt-dev@xxxxxxxxxxx
cc

Subject
Re: [cdt-dev] Debug Java Class from within a C program






Hi,

Thanks for the info. However, i would like to know if there is any other
way to debug multi processes / programs like this scenario.

Thanks,
Raghav

Alain Magloire wrote:
Hi,

Is it possible to debug a Java Class from within a C Program. I am able
to execute the C API and also the Java Class from within the C program.
However, i am currently unable to Debug the Java Class when it is
invoked from within a C program. Any help will be appreciated.



JNI integration is not really on the roadmap at this moment
although we are looking at some possibilities, any ideas
and even better ... any resources are more then welcome to make this
happen.


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev





_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
 http://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev




Back to the top