Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT?
EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT? [message #1716111] Tue, 01 December 2015 11:24 Go to next message
Anselm D. is currently offline Anselm D.Friend
Messages: 49
Registered: October 2015
Member
HI,

i try to debug EGIT and set up the environment using https://wiki.eclipse.org/EGit/Contributor_Guide.

I did some minor code changes only for testing purpose, set a breakpoint, use debug, which starts another eclipse.

org.eclipse.jgit.storage.pack.PackConfig (breakpoint does not work)
org.eclipse.egit.core.RepositoryCache (breakpoint works)


I think, break points and code changes in org.eclipse.jgit.* are not used. Is this true? What do i have to change?

Code coverage works for both (org.eclipse.jgit.* and org.eclipse.egit.*)


Re: EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT? [message #1716119 is a reply to message #1716111] Tue, 01 December 2015 13:25 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 274
Registered: July 2009
Senior Member
No, that should Work. When I have EGit and JGit projects in my workspace and on project "org.eclipse.egit" say "Debug As->Eclipse Application" then breakpoints I set in JGit work. If I set a breakpoint at first line of FileRepository(BaseRepositoryBuilder) and debug org.eclipse.egit as eclipse application I'll stop at this breakpoint (as long as your debug workspaces contains git related projects)

Ciao
Chris
Re: EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT? [message #1716382 is a reply to message #1716119] Thu, 03 December 2015 11:49 Go to previous messageGo to next message
Anselm D. is currently offline Anselm D.Friend
Messages: 49
Registered: October 2015
Member
Thank you, its was my fault, i am setting break points at the wrong part of the source code, which was not reached.
Re: EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT? [message #1716385 is a reply to message #1716382] Thu, 03 December 2015 12:23 Go to previous messageGo to next message
Anselm D. is currently offline Anselm D.Friend
Messages: 49
Registered: October 2015
Member
Using the instruction of:
https://wiki.eclipse.org/EGit/Contributor_Guide#EGit_2

D:\eclipse-committers-mars-1-win32-x86_64\git\egit>mvn clean install
...

[INFO] Computing target platform for MavenProject: org.eclipse.egit:org.eclipse.egit:4.2.0-SNAPSHOT @ D:\eclipse-committers-mars-1-win32-x86_64\git\egit\org.eclipse.egit\pom.xml
[INFO] Adding repository http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.2.13.v20150730
[ERROR] Failed to resolve target definition D:\eclipse-committers-mars-1-win32-x86_64\git\egit\org.eclipse.egit.target\egit-4.5.target: Failed to load p2 metadata repository from location http://download.eclipse.org/
tty/updates/jetty-bundles-9.x/9.2.13.v20150730/: Unable to connect to repository http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.2.13.v20150730/content.xml: Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

Putting http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.2.13.v20150730/content.xml
to my browser, it says "not found"

I would like to have a hint what is going wrong.


Re: EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT? [message #1716691 is a reply to message #1716385] Mon, 07 December 2015 14:40 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1269
Registered: July 2009
Senior Member
looks like you miss Maven proxy configuration in ~/.m2/settings.xml or you are offline currently
Re: EGIT/JGIT Eclipse contribution : how to set breakpoints in JGIT? [message #1716727 is a reply to message #1716691] Mon, 07 December 2015 18:55 Go to previous message
Anselm D. is currently offline Anselm D.Friend
Messages: 49
Registered: October 2015
Member
Thank you, but I am able to build jgit, so i am not offline.
Please lets us use the following threat for further help and discussions:

Eclipse Community Forums: EGit / JGit » EGIT: build: tycho does not use proxy environment of maven
https://www.eclipse.org/forums/index.php/t/1072781/


I would like to mark this threat as [solved] or [closed], is there a way to change the topic name?

[Updated on: Mon, 07 December 2015 18:59]

Report message to a moderator

Previous Topic:Use JGit in custom language plugin to ref user-entered git/github urls?
Next Topic:repo cloned from "origin", now not certain how to properly switch to fork/master
Goto Forum:
  


Current Time: Tue May 07 21:34:14 GMT 2024

Powered by FUDForum. Page generated in 0.03435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top