#using jdb with a maven project

10 messages · Page 1 of 1 (latest)

quick knoll
#

Hi everyone !

I set up a maven project and then wrote some code into Main.java
Now I wanted to debug this file using jdb. Therefore I compiled with
javac Main.java and started jdb Main.
But when I then set a breakpoint at stop at Main:4 and enter run the terminal tells me that no such file exists and then exits.
I will attach a screenshot (it is in german but maybe still helps).
Does someone know what the problem might be ?

vapid meadowBOT
#

This post has been reserved for your question.

Hey @quick knoll! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

quick knoll
#

and btw when I do the same with rps/Main as a name it still crashes

#

with classNotFoundException

agile veldt
#

Try cd..; jdb rps.Main

#

Also you mention Maven, but it seems that you don't use it...

quick knoll
#

alright I'll try that thank you !

vapid meadowBOT
# quick knoll alright I'll try that thank you !

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

vapid meadowBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.