Re: Auto-discard notification

Nathan Fiedler <[email protected]> Sat, 19 Feb 2005 16:30:55 -0800
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <[email protected]>
Hi Daniel,

That sounds like a fine suggestion. It is no impact to those using Java 
source code and should certainly only benefit anyone using any other 
source language.

Using Nice I'll see to it that the debugging behaves properly. I'll let 
you know when the changes have been made and you can try the nightly 
build and let me know if it does what you want.

Thanks

n


[email protected] wrote:
> Hi,
> 
> I just tried to debug a Nice application with JSwat. To my surprise, 
> JSwat would at first not find the source code (which I expected, since I 
> initially contributed the SourceDebugExtension support in JSwat, and 
> made sure it worked with Nice). After investigation, the problem lies 
> with stratum selection. My implementation most likely only supported 
> using the default stratum, which is defined in the content of the 
> SourceDebugExtension attribute. I see that version 2.27 added the 
> possibility to select which stratum should be used. This is surely a 
> good feature, if for any reason you don't want to work at the default 
> (highest) level.
> 
> However, it seems that the result is that currently the default stratum 
> is completely ignored by JSwat. I see in the prefences dialog that the 
> "default value" for the default source stratum is "Java". Is this value 
> handled specially by JSwat?
> 
> I think the ideal situation would be to honor the default stratum set by 
> whoever generated the class file, while retaining the possibility to 
> choose a different value if needed. What about the following scheme: 
> instead of "Java", JSwat would come with a default of "" for the default 
> source stratum. When chosing the stratum, this value ("") would be 
> interpreted as chosing the default stratum specified in the class file. 
> Any other value would be passed literally to JDI.
> 
> Would this be an acceptable solution to everybody?
> 
> Cheers,
> 
> Daniel
> -- 
> The Nice programming language: http://nice.sf.net