Where to draw the line between support, plagiarism and academic dishonesty?
Activities 1-3 are perfectly fine, and fall within the category of teaching and learning.  There is no more issue with these activities than if you undertake approved university courses during your program.  Activity 4 is the only one that could potentially raise issues, depending on your field of study and the extent of the assistance.  If you are undertaking a thesis where the primary activity is coding and debugging, where you are expected to do these activities yourself, then it might not be okay to have assistance on this task.  If you are outside of that field then debugging assistance in your coding is probably analogous to copy-editing services for the textual elements of the thesis, and in that case you should seek guidance from relevant standards applicable to your university (here is an example of applicable standards for copy-editing of theses in Australian universities).

In any case, you should raise this matter with your thesis supervisor, disclose the details of the assistance you got, and make sure you give an appropriate acknowledgement in your thesis, so that the reviewers are aware of the matter.  Your supervisor will be able to point you to relevant policies that apply at your university, and will be in a good position to assess whether the help you have sought raises any issues.  Unless your thesis is specifically about programming/debugging tasks, there is probably reasonably wide scope for basic debugging services (analogous to light copy-editing services) and so it will probably not be an issue.