Author Topic: Java Debugging and ZIP files  (Read 1169 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1710
  • Hero Points: 166
  • Text
Java Debugging and ZIP files
« on: March 25, 2015, 05:51:07 am »

When debugging Java I cannot step into source code that is in a ZIP file.
Even when I have the file, such as JLabel.java, already open in Slick, the slick debugger won't use it.


Seems like this oughta work.

"C:\Program Files\Java\jdk1.8.0_11\src.zip\javax\swing\JLabel.java"

Marcel

  • Senior Community Member
  • Posts: 186
  • Hero Points: 19
Re: Java Debugging and ZIP files
« Reply #1 on: March 25, 2015, 02:26:05 pm »
I am pretty certain that the swing package (javax) is in the debugger runtime filter [Debugger Options -> Runtime filters]. You would have to remove it from there to be able to step in.

jporkkahtc

  • Senior Community Member
  • Posts: 1710
  • Hero Points: 166
  • Text
Re: Java Debugging and ZIP files
« Reply #2 on: March 25, 2015, 07:58:05 pm »
The problem wasn't that I couldn't step into it, it was that the debugger couldn't find the source once I did step in.


Thanks, I didn't know how to change what slick will and won't step into --I just used the double-arrow step-into which says it will step into runtimes.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2571
  • Hero Points: 386
Re: Java Debugging and ZIP files
« Reply #3 on: April 29, 2015, 11:19:33 pm »
As a workaround, you can add path the under the src.zip file to Debugger Options > Directories and the SlickEdit will search there for the source files.

I am adding some smarts to the next release to check for a "src.jar" in your current JDK and try to resolve the paths automatically.



jporkkahtc

  • Senior Community Member
  • Posts: 1710
  • Hero Points: 166
  • Text
Re: Java Debugging and ZIP files
« Reply #4 on: April 30, 2015, 04:44:27 pm »
Cool. That works.
But, how are you *supposed* to add "src.zip" into the debugger directories?
I had to create a directory called "src.zip", add it to slick, then remove the directory and replace it with the src.zip file.