Don't worry, there's no silly questions here...
You must use debug-mode while you'r developing your app, so when you test and compile, you can get the exact line the error is happening.
Once you have your app debugged and you know it's working fine, then compile in release mode and you'll get your apk file to distribute to your users (in a store or another way)