I'm currently using Jadclipse eclipse plugin to dis-assemble the code when the source is not attached to the eclipse.
I'm not clear how to make it sync and debug the same.
Could someone help me with the steps as well as comments in detail?
Any help is much appreciated.
Thanks,
Kathir
I am not sure whether Eclipse is able to synchronously read codes decompiled by Jadclipse as debug source. I guess it probably not.
As so, I advice you manually de-compile these codes and save it to local source files, link them to source in Eclipse, after that, try using remote debug mode to debug your code. this is the way I always did.
Related
I want open AOSP in IntelliJ, I do step by step like here: https://shuhaowu.com/blog/setting_up_intellij_with_aosp_development.html
but after sync IntelliJ(like in title) can't see classes in package, I cant't create "Java Class", and in some cases after mouse over can't see tips.
I can also write anything I want and and the program does not report an error. Any ideas how I can solve this problem?
for Aosp you cannot use Intelleji for clearly
try to use just for IDE and compile project with make
my advice is VScode
While debugging our web app, we needed to trace thru the code, including 3rd party open source software.
When looking at this problem with several people on my laptop, someone quickly downloaded the latest source jar file and pointed our project to that jar file. However, since it's not the same version, the lines of code don't match so when debugging, it can point to blank lines.
Afterwards, I found the correct git branch, and downloaded the correct version of code, or at least it's closer to the code we're using than the code someone else downloaded. However, it seems like Eclipse is still using the old code. In Eclipse, I went into Projects->Properties->Java Build Path->Libraries and deleted the jar file that I think contains the code but it still seems to be using the old code.
When I continue debugging after deleting this file, it doesn't give me the choice to Attach Source. How do I make Eclipse allow me to use another source file when tracing thru code when debugging?
If deleting the jar file should have fixed this problem, then I probably deleted the wrong jar file and will delete this question since it's user error.
In the Debug view, select the Debug tab. Right click your debug instance and choose "Edit source lookup..."
See below:
Be sure to run a Project Clean after changing the source lookup. I have run into many inconsistencies in various versions of Eclipse with this feature.
If you are using maven you can instruct maven to automatically download the source jars. This should usually be the right version.
I have the problem same as this.
I just tried to figure out how does hashmap internally works. So I want to debug the source code of SDK.
Currently. I think What I am looking for the compiled version with debug information for Java SE 1.7. i.e. compile using javac -g.
I think I am not the only guy who want to do this. So anyone who knew the link or already done this before. (Sorry for I am the lazy man.Forgive me that. ) Please kindly share the work result for me. Well appreciated. Thanks.
You do need to compile those classes with debugging yourself.
Distributing such a package would probably be a violation of Oracles License Agreement.
The post you linked has detailed instructions on how to do that.
The link in my question actually answered my question. But I just want to add missed part it didn't mention. The endorsed jar file should be joined in the installed JRE as an external jar otherwise it doesn't work. Thanks.
Is there any manual on this? I can't find any.
What are necessary packages and where is their repo, what is the project structure and build process?
UPD the ultimate goal I'm trying to achieve is to debug Eclipse on Windows
Check these links
http://wiki.eclipse.org/Development_Resources
https://wiki.eclipse.org/Eclipse_Corner#Eclipse_Platform_Technical_Overview
https://wiki.eclipse.org/Platform_UI/How_to_Contribute#Setting_up_your_SDK
http://wiki.eclipse.org/Platform
There is a new tool called oomph Try this its easy to setup development environment. Check this video
Unable to comment so posting as answer
Please check this link should get you started
http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/srcIncludedBuildInstructions.html
I agree with the comment from #user3159253 . Cannot really understand the need to go through this trouble. Use RPM.
I am having a problem with Eclipse where I can run my program just fine, but when I try to start the debugger, I get this message
The picture is a little hard to make out, but instead of getting the normal debugging window, instead it says it is throwing a ClassNotFoundException, and is trying to dislay the source for Launcher$ExtClassLoader.
The thing that really baffles me though is that I can run the code just fine, it is only when I click the debug button that I have the problem.
I have also tried debugging at the command line with JDB, and I got the same error.
So far, I have tried Reinstalling Eclipse and downloading (what I believe to be) the correct Java Development tools for Mac OS X.
I have no idea what else I can try, so any help would be greatly appreciated. Let me know if there is any other information I can provide.
Source not found might be legitimate for dynamically loaded code (e.g. Maven).
There are three workarounds known to me (after months of search):
Connect to a running JVM with the debugger and you will see the code.
Use Dynamic Source Lookup plugin for Eclipse from here:
https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup
Use run-jetty-run Maven plugin
http://code.google.com/p/run-jetty-run/
I prefer and recommend 3. It works and starts webapp much faster than jetty:run.
Unfortunately 2. didn't helped me as it has issues with Windows paths with spaces.
I have filled an enhancement request on Eclipse Bugzilla and if you agree this issue "Source not found" should vanish forever, please vote for it here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384065
Do you have the sources for the files that you are using. If you are using Maven (M2Eclipse) you could download the sources. This might solve the problem.
Otherwise you could go and manually attach your sources. Here is how you manually attach sources.
Next you have to attach the sources-
Hope this helps
The "source not found" is a red herring - there may simply be no way to get access to the source that is throwing the error, because it is deep in the guts of the debugger's class loader.
The better question, then, is, "Why is scottrice.ChessPuzzles.ChessPuzzleDriver not being found?" The only possibility that occurs to me at the moment is that something might be weird in your debug configuration. Did you debug the program by just right-clicking a file with a main() and choosing "Debug As" -> "Java Application"?