DEV Community

Discussion on: What do you do when you're stuck?

Collapse
 
zubairmohsin33 profile image
Zubair Mohsin

I work with PHP and JavaScript. Both are scripting languages and are interpreted as one line of code after the other.

So I just start at the beginning and then go on logging/dumping things.

Thought process example:

  • form is submitted
  • okay so its hitting Controller class method just fine
  • before validating we had this input ( note it down roughly )
  • okay something changed during validating the input ( note it down )
  • compare these outputs and try to make sense what could go wrong

I hope this helps :)

Thread Thread
 
krl87 profile image
Kayley

Definitely! Thank you for showing me how you work through a scenario like that!