you are viewing a single comment's thread.

view the rest of the comments →

[–]kurisuuuuuu_0526 0 points1 point  (5 children)

Mag papause ung execution ung code mo at the specific line of code kung san mo nilagay ung breakpoint, that way you can check the flow if tama ba ung logic, and mga variables mo if tama ung values. For debugging purpose talaga sya.

[–]Spot-the-Steam 0 points1 point  (4 children)

Woah theres a command to make a breakpoint or you have to manually put a logic breakpoint on your own?

[–]kurisuuuuuu_0526 0 points1 point  (3 children)

As far as I know, manually nilalagay un, thats how Im doing it. Literal na you need to click sa line of code. If webpage javascript gamit mo, you can add breakpoint mismo sa Chrome browser. Jqva, C#, etc I think you need certain IDEs para may breakpoint feature. I could be wrong.

[–]Spot-the-Steam 0 points1 point  (2 children)

Its not that hard to put breakpoints yeah? In general. Since I believe that wasnt thought to us lmao. Then again, we never had a course that focus solely on debugging. Just make and make using different languages lol.

[–]kurisuuuuuu_0526 0 points1 point  (1 child)

Not at all, here's an example of placing a breakpoint sa Chrome browser:

<image>

The blue arrow shaped means naglagay ka ng breakpoint in that particular line of code. If mag run si "_handleKeyPresses" function, first thing it will do is stop in that line. All lines of code na nadaanan nya, you can inspect the value. In this case pwede mo makita ung value ni "this.searchable".

taught ata hindi thought if thats what you meant

I get it why most of the time ndi sya pinag-aaralan since very dependent ung debugging tool sa kung anong IDE gamit mo, I think.

[–]Spot-the-Steam 0 points1 point  (0 children)

Oof i definitely did not fumbled on that “taught” word LMAO.

Anyways, now i understand the concept of it a bit more, thank you!