Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
main[1] print myVariable
com.sun.tools.example.debug.expr.ParseException: 名前が不明です: myVariable
myVariable = null
なぜこれが起こっているのかについての推測はありますか?いつものようにブレークポイントを配置できますが、変数にアクセスできません。
コードをコンパイルするときは、必ずデバッグ モードで実行してください。
javac -g *.java
その後、デバッグ中に変数を出力できるはずです。