The problem: I am unable to debug a Maven project based on JavaFX 11 that is written and launched using Eclipse IDE 2019-03 (4.11.0) using the method suggested here and used in a related question.
Sample code:
public class HowdyJFX extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
final String javaVersion = System.getProperty("java.version");
final String javafxVersion = System.getProperty("javafx.version");
final Label l = new Label("Hello, JavaFX " + javafxVersion + ", running on Java " + javaVersion + ".");
final Scene scene = new Scene(new StackPane(l), 640, 480);
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch();
}
}
If I set an Eclipse
breakpoint at the first line of the start()
method (where a variable is assigned), the application should stop running at that point, which does not happen; instead the application continues running as if the breakpoint wasn’t there.
A solution is suggested here and near the bottom of the question referenced above, but these both require a very different launch method than the one suggested by OpenFX.
Thanks in advance for any useful tips!