Debugging Client, analyzing it

Forum for alternative clients, mods & discussions on the same.
displaced
Posts: 124
Joined: Wed Feb 12, 2014 12:09 am

Debugging Client, analyzing it

Post by displaced »

Hello everyone,

is someone there willing to help me set up an IDE (IntelliJ or Eclipse) and to explain me in short how the building and debugging process is working for this project via discord?
I wanna get through the code and understand how some part of it is working. Any help will be appreciated.

Greetings
Kami
iamahh
Posts: 1806
Joined: Sat Dec 12, 2015 8:23 pm

Re: Debugging Client, analyzing it

Post by iamahh »

hire a teacher and get yourself a comfy cup of warm chocolate
Last edited by iamahh on Fri Mar 31, 2017 7:02 pm, edited 4 times in total.
displaced
Posts: 124
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Post by displaced »

Not exactly helpful.

Still can't make breakpoints -> Step through the code.
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Debugging Client, analyzing it

Post by shubla »

http://stackoverflow.com/questions/4733 ... in-eclipse
http://stackoverflow.com/questions/9347 ... n-intellij
https://www.jetbrains.com/help/pycharm/ ... oints.html
Google is a friend.

Client is a mess, maybe it makes sense to people like Apxeolog who have carefully inspected and studied how it works. Or something.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
displaced
Posts: 124
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Post by displaced »

I'm not new into programming.. But i've never used this much java, plus i never had a problem with debugging code.
This one seems different because of the ant builds.

I've tried to make a debug configuration with MainFrame as main class and put in the -jar hafen.jar as vm command line argument, but he's telling me that "-- "D" is a invalid parameter.
I'm not sure what he's trying to tell me, since i don't have this parameter defined anywhere
User avatar
Astarisk
Posts: 882
Joined: Fri Aug 13, 2010 7:08 am

Re: Debugging Client, analyzing it

Post by Astarisk »

Look into remote debugging for intellij that's what I use.
IRC/IGN: Rawrz

Join the (HedgeHugs) Haven & Hearth Discord if you need help.
https://discord.com/invite/Uy8yzm4
displaced
Posts: 124
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Post by displaced »

I really not wanted to have this, but yeah i'm using remote debugging now too.
The only problem i have is, that you have a time gap between running the programm and using the debugger..
So you can't actually debug from the first line of code, or maybe i haven't found a way yet.
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Debugging Client, analyzing it

Post by APXEOLOG »

displaced wrote:I really not wanted to have this, but yeah i'm using remote debugging now too.
The only problem i have is, that you have a time gap between running the programm and using the debugger..
So you can't actually debug from the first line of code, or maybe i haven't found a way yet.
If you want to lauch client from the IDE, not from jar, then you need to manually process annotations, because loftar's runtime annotation processor doesn't work properly in this case
https://github.com/dolda2000/hafen-clie ... .java#L760
There are also some more annotations you should take care of, just search for usage of the dolda.jglob.Loader in the code
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.

Return to “The Wizards' Tower”