This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Current JPDA debugger implementation can debug Java code compiled to bytecode and executed. There is a need to debug also other languages that compile into bytecode. Currently we have JSP debugger that uses JPDA debugger implementation and only adds JSP-specific code. We need to create JavaFX debugger in a similar fashion, use JPDA debugger, that can debug bytecode and add only JavaFX-specific functionality. We need to get rid of the terrible copy of JPDA debugger created by Alexey Butenko (see http://hg.netbeans.org/javafx/rev/512), which is under javafx.debug at http://hg.netbeans.org/javafx. This copy is absolutely unsusable and unmaintainable. JPDA debugger is able to debug JavaFX code, with some limitations that need to be implemented specifically for JavaFX.
Language detection support was added to enhance the stratum concept. Unfortunately, stratum concept is does not count with languages that compile directly into bytecode, without an intermediate Java source. Source stratum named "Java" is created automatically and does not have a stratum section. Therefore source stratum returned by JDI methods for all languages compiled directly into bytecode is "Java". JPDA debugger uses the session language when it searches for services like view models, etc. Since the stratum can not be used to detect the language in all cases, we need an extension to the stratum concept. We retrieve the language from the extension of the source file name. Upper-case version of that extension is used as the language name. This was implemented in changeset 10d3ee317bb4: http://hg.netbeans.org/main-silver?cmd=changeset;node=10d3ee317bb4
Integrated into 'main-golden', will be available in build *200908270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/71fb7844f634 User: mentlicher@netbeans.org Log: #167254 - Correction of support for non-Java languages that do not define stratum - e.g. JavaFX. We get the session type from source file extension.
This would be very useful for groovy. It is very similar to Java FX in the way how it is compiled, stratum etc.
Issue #171342 for created for evaluator API.
JavaFX debugger works on top of JPDA debugger, therefore this seems to be fixed.
verified closed