SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jporkkahtc on March 25, 2015, 05:51:07 am

Title: Java Debugging and ZIP files
Post by: jporkkahtc 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"
Title: Re: Java Debugging and ZIP files
Post by: Marcel 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.
Title: Re: Java Debugging and ZIP files
Post by: jporkkahtc 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.
Title: Re: Java Debugging and ZIP files
Post by: Dennis 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.


Title: Re: Java Debugging and ZIP files
Post by: jporkkahtc 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.