Skip to content

Instantly share code, notes, and snippets.

View yuriteixeira's full-sized avatar

Yuri Teixeira yuriteixeira

View GitHub Profile
@yuriteixeira
yuriteixeira / xdebug_tests.md
Created October 14, 2015 10:30
Xdebug + Tests + IntelliJ
  • SSH to your machine like this: ssh -R 9000:localhost:9000 your.remote.machine
  • Ensure you have Xdebug installed and configured with xdebug.remote_enable=1
  • Add this snippet to your .bash_profile or similar shell init script:
# XDebug  
function xdebug-start {
	xdebug_site=$1
	xdebug_host=$2
	xdebug_port=$3
@yuriteixeira
yuriteixeira / puppeteer_chromedevtools_android.md
Created August 28, 2018 08:41
Puppeteer/Chrome Dev Tools Protocol: How to manipulate Android Chrome or WebViews

First of all, get prepared by installing the Android SDK and SDK tools in order to get the adb executable. Then:

  1. adb connect <device ip>

  2. To get the service name `adb shell "cat /proc/net/unix | grep devtools_remote", which will give you something like this output:

00000000: 00000002 00000000 00010000 0001 01 423897 @webview_devtools_remote_18279