Skip to content

Instantly share code, notes, and snippets.

View codeloving0's full-sized avatar

codeloving codeloving0

  • ShangHai
View GitHub Profile
@codeloving0
codeloving0 / README.md
Created May 24, 2018 11:20 — forked from Im0rtality/README.md
PHP CLI Debugging in Vagrant using Xdebug and PHPStorm

In host:

  1. Go to PHPStorm Settings > Project settings > PHP > Servers
  2. Add server with following parameters:
    • Name: vagrant (same as serverName= in debug script)
    • Host, port: set vagrant box IP and port
    • Debugger: Xdebug
    • [v] Use path mappings
    • Map your project root in host to relative dir in guest
  • Hit OK
@codeloving0
codeloving0 / 0_reuse_code.js
Created September 21, 2017 01:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console