Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] How to Debug ARX using Eclipse? #450

Closed
unical1988 opened this issue May 20, 2023 · 13 comments
Closed

[FEATURE] How to Debug ARX using Eclipse? #450

unical1988 opened this issue May 20, 2023 · 13 comments
Assignees

Comments

@unical1988
Copy link

I would like to debug ARX code using Eclipse. How do I have to proceed to do so?

@prasser
Copy link
Collaborator

prasser commented May 20, 2023

This should help (also read the comments):

iaBIH#5

Works?

@idhamari
Copy link
Contributor

I would like to debug ARX code using Eclipse. How do I have to proceed to do so?

This is also a good tutorial about debugging in eclipse.

@unical1988
Copy link
Author

@prasser As suggested by the video here https://drive.google.com/file/d/11lFZk71YCDAIUUPjwAObhrOfC93V6w-D/view, it does not, I can't find the run as an application for the src/main/gui/Main.java file

@idhamari
Copy link
Contributor

it does not, I can't find the run as an application for the src/main/gui/Main.java file

Can you show what does not work? screenshots and/or videos of your steps would be helpful.

@unical1988
Copy link
Author

@idhamari when I right click on the Main.java in the gui folder (org.de-indentifier.arx.gui) as the highlighted video shows, the list doesn't contain the option "run as an application" but just "run configuration". It must be a project setup problem, that I can't figure out anyway.

@idhamari
Copy link
Contributor

@unical1988 can you make sure that your eclipse and java were installed correctly e.g. by trying to create any simple java project then compile it and run it in eclipse?

@unical1988
Copy link
Author

@idhamari sure eclipse works ok.

@prasser
Copy link
Collaborator

prasser commented May 21, 2023

Then it's likely that your project setup is not correct. Have you followed the steps described at the link exactly? Maybe delete the project and start again following the instructions?

@unical1988
Copy link
Author

unical1988 commented May 22, 2023

Given as mentioned that the run as application option is not offered when I right-click the Main.java in the GUI folder (in order to execute ARX), I set the run configurations "goal" to be equal to exec:java.
But then when I run that configuration I get the following error:

Caused by: org.apache.maven.plugin.PluginParameterException: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java are missing or invalid

Which I tried to solve using:
<mainClass>${project.basedir}/src/gui/Main</mainClass>
Inside

<plugin>
<groupId>org.codehaus.mojo</groupId>
...
<configuration> 
<!-- I specify the location of the main class here-->
...
</configuration> 
</plugin>

But still get the same error as before doing this.

@prasser
Copy link
Collaborator

prasser commented May 22, 2023

You should not use Maven. Per default, ARX runs in Eclipse without Maven und the binaries are built using Ant (but you don't need to run Ant to be able to compile / debug ARX in Eclipse). As I said, something seems to be wrong with your project. It is, for example, important to not create a Maven project, but a Java project and to not add the Maven nature. Create a simple Java project following the steps in the tutorial linked above.

@unical1988
Copy link
Author

I deleted and imported the project again as Java application, and it worked, I am able to open the GUI and debug the software. Now, if I have implementation inquiries (e.g., about the role of some method or a class in the code), how/where could I ask them?

@idhamari
Copy link
Contributor

From this: When you have a general question about data anonymization or ARX, please do not create an issue but send us an email.

This probably will be useful to have

@prasser
Copy link
Collaborator

prasser commented May 29, 2023

Great. Will close this now.

@prasser prasser closed this as completed May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants