Thursday, August 21, 2014

Trigger breakpoint in Javascript

To trigger breakpoint in Javascript, you can add a 'debugger' in your code. For example:

function testing() {
    alert(123);
    debugger;
    alert(456);
}

The debugger will be triggered at runtime.

Friday, August 1, 2014

Restart VirtualBox services in OSX (Useful for running genymotion in mac)


Run the following command to restart VBox in mac:

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

Whenever your genymotion emulator cannot restart in macos, try this.

Sync multiple git repo at once

Use the following command in Linux will do the job:  ls -d RepoNames* | xargs -I{} git -C {} pull