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.

Bug 167254 - Create a support for non-Java bytecode debuggers.
Summary: Create a support for non-Java bytecode debuggers.
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on: 171342
Blocks:
  Show dependency tree
 
Reported: 2009-06-17 17:23 UTC by Martin Entlicher
Modified: 2010-05-10 09:04 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2009-06-17 17:23:36 UTC
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.
Comment 1 Martin Entlicher 2009-08-19 13:05:48 UTC
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
Comment 2 Quality Engineering 2009-08-27 06:01:29 UTC
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.
Comment 3 Petr Hejl 2009-08-31 13:11:44 UTC
This would be very useful for groovy. It is very similar to Java FX in the way how it is compiled, stratum etc.
Comment 4 Martin Entlicher 2009-09-02 17:27:52 UTC
Issue #171342 for created for evaluator API.
Comment 5 Martin Entlicher 2009-11-16 08:34:51 UTC
JavaFX debugger works on top of JPDA debugger, therefore this seems to be fixed.
Comment 6 Marian Mirilovic 2010-05-10 09:04:56 UTC
verified closed