Pair with a strong senior developer, and observe as they troubleshoot. Learn troubleshooting and debugging tools like gdb, ldd, nm, strace for Linux, or SysInternals & Visual Studio debugger for Windows. Troubleshooting, debugging and diagnostics are skills in themselves that will stand you in good stead going forward.