t-artistik / javasnoop

Automatically exported from code.google.com/p/javasnoop
0 stars 0 forks source link

Hook Functions within Remote Classes #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Attach to a process which loads classes with a custom class loader at 
runtime (remote via network)

2. Open "Class Management -> Browse Remote Classes" and see all classes (even 
the ones loaded at runtime later on) <-- expected behaviour

3. Open "Add New Hook -> Browse" and see only that classes which have been 
within the inital JAR file but NOT the classes loaded during runtime <-- 
discrepany to classes listed in step 2.

What is the expected output? What do you see instead?

Get the same list of classes, both within the "class management" and the 
"browse window for hooking". Currently it's not possible to select classes and 
hook functions which was added thru class loading at runtime.

Possible solution?

Maybe ui.JavaSnoopView.showChooseClassForm() should also perform a 
GetRemoteClasses()-Request to SnoopAgent (as 
JavaSnoopView.browseRemoteClasses() does)?

Original issue reported on code.google.com by andreas....@gmail.com on 31 Jan 2011 at 3:32

GoogleCodeExporter commented 9 years ago
Have you tried the "Synchronize classes" menu option under Class Management? 
This updates that collection with all the classes that have been loaded since 
attaching (or last synchronizing).

Original comment by arshan.d...@gmail.com on 12 Feb 2011 at 12:17

GoogleCodeExporter commented 9 years ago
Yes, I did already try to "Synchronize classes" but without any effect. 

Original comment by andreas....@gmail.com on 13 Feb 2011 at 5:35