Hi Will,
On 11.09.24 19:45, Will Hartung wrote:
I'm sorry, my earlier message was prematurely sent, so this is the
complete message (I hope),
I've been debugging some code and dropping into some libraries. While
I have the source code, when I mouse over local variables, I get the
message:
Variable information is not available, source compiled without -g option.
Now apparently, -g has several options: source, lines, and vars.
The code I'm stepping into has been compiled with -g:source,lines but
not vars.
indeed.
javap -v javafx-controls-22.0.2-linux/javafx/scene/control/Button.class
| grep Table
will find "LineNumberTable", which explains why stepping through javafx
code works fine (and why exceptions have line numbers), but no
"LocalVariableTable".
I'm trying to find out from the creators how to create a local
distribution with all of the debug information so I can debug it, but
others suggest that they are not encountering the problem. But they're
using IDEAs IDE, not NetBeans.
this seems to be the switch:
https://github.com/openjdk/jfx/blob/463fdab5cffe88c6f8ce5465795d579d45342fac/build.gradle#L4145
(almost 6k line build script O.o)
Are they simply mistaken? Is this a limitation of NB vs IDEA? I don't
know how IDEA can be getting this information, but maybe something has
changed over the years.
I am not sure. There are probably ways to guess the variable association
in some cases esp when the source is available anyway. NB expects this
information to be in the bytecode right now.
it's a silly discussion, tangential to my ask in this case.
(Specifically I want to know how the OpenJFX is built and deployed to
maven locally, since the wiki page says it can do that, but the build
apparently has no target for it, and they demonstrably do this, but,
alas...anyway...)
well the build uses gradle so it is not following any convention (have
no time to look into this atm). The fastest way to get there is to
either find debug builds of javafx somewhere, or build it locally (while
setting the flag) and put the jars into your local repo.
If the build doesn't support that you can always "install" jars
individually as last resort with
https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
best regards,
michael
Regards,
Will Hartung
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists