バグが見つからない場合は、どこまで処理が来ているのかをチェックする必要があります。
長いソースコードだと探すのが大変ですが、途中まで処理が来ているか?をメッセージを出したり、
後半のソースコードをコメントアウトしたり、切り離して実行することで、大体のエラー位置を調べることができます。
出屋敷プログラミング教室
If you cannot find a bug in your code, you need to check how far the process is executing.
When the code is long, it can be difficult to locate the issue.
In such cases, you can insert debug messages to see whether the process reaches a certain point, or comment out the latter part of the code, or isolate sections and run them separately.
These methods help you identify the approximate location of the error.
Deyashiki Programming School
次回

