0

I can't debug anything since yesterday and I don't know what it is. My programs run fine, and there is no error whatsoever. It doesn't matter which program i debug, I can make a Hello World-program and the debugger wont start. This is what I get:

Source not found, confirm perspective switch

Source not found, confirm perspective switch

If I click yes; Debugger info

If I click yes; Debugger info

If I click No, nothing happens.

I've tried configuring the debugger by adding all my projects to "Source", but that doesn't do it. :/ I've searched the web for more solutions but nothing works for me.

Nicolas Filotto
  • 43,537
  • 11
  • 94
  • 122
djokerndthief
  • 455
  • 2
  • 4
  • 16
  • The first pic is asking you to switch to debug view. In the debug view you can view stack frame, enable/disable breakpoints, step over/in/out etc. So that you should do. The second pic says that debugger cannot find a source for the jar you are debugging. You need to edit look up path to point to a source jar. There needs to be a source jar corresponding to the jar used in the application for debugging. – SomeDude Nov 17 '16 at 14:50
  • The problem is that I'm adding my whole workspace in the path but doesn't help. And frankly I can't find any jar file anywhere. – djokerndthief Nov 17 '16 at 23:51

2 Answers2

0

If you don't have the source jar to the code you're trying to step into, then you can't see the code, because it's the executable version.

Meaning, for an example, if you're trying to debug the code in json.jar file, then you should have something like json-source.jar that you can attach to that file so you can step into it and see what's happening. If you can elaborate more on your situation, we might be able to help more.

0

OK I Solved it! Newbie alert!

I had TOO MANY debug sessions going on, and didn't know I had to terminate them. So while I clicked "Step into" I thought nothing happened, but I actually slowly ate the exceptions that was there. I also had an exception ticked, which means the debugger started from there and didn't go directly to my breakpoints.

WHY that exception is there I have no idea, since the code runs fine from the JFrame...

I terminated the debug sessions to the left, so now it's clean and fresh. And after unchecking the exception bs and only checking my breakpoints, it works:

Screenshot

djokerndthief
  • 455
  • 2
  • 4
  • 16