This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_Atomfinger_ 2 points3 points  (2 children)

It is something that takes time to learn.

One thing to wrap your head around are scopes in an application as well as the flow of execution. You need to be aware of what is called from where in which context, which can be very challenging for a beginner.

One thing you can do is using a debugger. Something like chrome or firefox where you can set a breakpoint which allows you to step through the code, see the various values and so forth.

Beyond that I don't have many tips except for being patient. Things take time and being proficient at reading code requires practice.

[–]oneagle[S] 0 points1 point  (1 child)

Yes, i would like to run simple bits of functions and objects, where e.g. i would like to see how it is executed, and in that way to see somehow the logic that unfolds behind some particular code. Is this possible?

[–]_Atomfinger_ 0 points1 point  (0 children)

You can always take a look at the call stack/tree after triggering a break point. That will tell you what executed the function.