1

I've just started working with javafx, it seems cool and NetBeans seems much more fun than Eclipse but I find it impossible to debug my application. I've added breakpoints, and I pressed the debug button, I see the debugger is registered to some port but it doesn't cause the application to start.

When I run the application and attach a debugger nothing seems to happen. This is extremely annoying since I am using an external library I've added to my project, and I can't edit its content (since I am getting 'java file cannot be locked as it is read only').

I am very new to java and especially javafx, thank you for your help I sure need it:)

4

1 回答 1

1

首先,我将从下载最新版本的 NetBeans(截至今天为 6.7.1)开始。其次,NetBeans 将允许您在对语言没有意义的地方放置断点。你最好把断点放在像函数这样的run()函数中,然后从那里开始。

还有一件事:如果您使用调试按钮,请确保您将 JavaFX 项目设置为主项目,因为我相信它只对您的主项目起作用。

于 2009-08-25T15:23:55.090 回答