GithubHelp home page GithubHelp logo

theizekry / x-debug-cheat-sheet Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

It's just cheat sheet for x-debug to anyone wants to start to use this amazing tool.

x-debug debugging debugger debugging-tool debug

x-debug-cheat-sheet's Introduction

X-Debug cheat sheet.

It's just cheat sheet, for X-debug to anyone wants to start to use this amazing tool.

In order to use the debugger you need to know about the following concepts:

Breakpoints

Please BREAK at this point and tell the server what's going on

Call stack

A list of functions in the debugger that explains how the program got to where it currently is.

Think of this as a live stack trace, without the exception.

Stepping

Stepping is the action of "telling the debugger" to advance through your program one line at a time. Remember, a computer program is many small steps combined to form a large goal. It is often the case that one of these small steps is "incorrect". To identify which step is incorrect, we "step" through the program, looking at each line of code as we come to it, and seeing what effect this has on the VARIABLES (really the data in the variables)

There are several ways to tell the debugger to move through the code:

Step over

Step Over the current function/method.

Runs the function/method, but doesn't debug into it.

Step into

Step Into the current function/method.

Move to the file the function was declared and steps over that function.

Step Out

Step Out of the current function/method.

Move to the place that the return value is used.

Sources:

Step Into Step-through Debugging.

https://www.fourkitchens.com/blog/article/step-step-through-debugging/

Step Into Debugging with PhpStorm

https://www.youtube.com/watch?v=GokeXqI93x8

Learn How to Debug PHP with Xdebug and VsCode

https://www.cloudways.com/blog/php-debug/

https://docs.microsoft.com/en-us/visualstudio/debugger/debugger-feature-tour?view=vs-2019

x-debug-cheat-sheet's People

Contributors

theizekry avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.