Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
META-INF/ | 03-May-2024 | - | 16 | 15 | ||
icons/ | 03-May-2024 | - | ||||
src/com/android/ide/eclipse/gldebugger/ | 03-May-2024 | - | 10,089 | 8,931 | ||
.classpath | D | 03-May-2024 | 485 | 11 | 10 | |
.gitignore | D | 03-May-2024 | 6 | 2 | 1 | |
.project | D | 03-May-2024 | 650 | 29 | 28 | |
README.android | D | 03-May-2024 | 1.9 KiB | 21 | 14 | |
build.properties | D | 03-May-2024 | 314 | 12 | 11 | |
contexts.xml | D | 03-May-2024 | 529 | 13 | 12 | |
generate_GLEnum_java.py | D | 03-May-2024 | 2.2 KiB | 74 | 44 | |
generate_MessageFormatter_java.py | D | 03-May-2024 | 10.6 KiB | 282 | 230 | |
generate_MessageParser_java.py | D | 03-May-2024 | 10.6 KiB | 305 | 250 | |
plugin.xml | D | 03-May-2024 | 1,012 | 35 | 32 | |
setup.sh | D | 03-May-2024 | 707 | 36 | 19 |
README.android
1The following is taken from slide 3 & 4 of https://docs.google.com/a/google.com/present/edit?id=0AcZLV3icFYi0ZGZxa3NqZndfMGRqa2tiOXB4&authkey=CMfb8ukI&hl=en 2The spec doc is at https://docs.google.com/a/google.com/document/d/1dsASXCF9Suq8KOGcxwB2mAwgdRlrFj4QhMxkfaRJlA0/edit?hl=en&authkey=CPj4tKkO# 3 4 5Building and Running 6 7Debugger server is linked into EGL, code is in framework/base/opengl/libs/GLES2_dbg and already included in latest master builds, no action needed. 8Use development/tools/glesv2debugger/setup.sh to build and copy the jars: libprotobuf-java-2.3.0-lite, liblzf, sdklib into development/tools/glesv2debugger/lib 9Install Eclipse SDK for Eclipse: Eclipse->Help->Install New Software. Select "All Available Sites" in the "Work with:" drop down, then find "Eclipse SDK". (If Eclipse reports dependency conflicts, try install updates first) 10Debugger client is an Eclipse plug-in, code is at development/tools/glesv2debugger, built in Eclipse 11Optional: build glsl_compiler and copy to plug-in working directory; this is used for shader syntax check 12 13 14"Attaching" to a Process 15 16adb shell setprop debug.egl.debug_proc <process name> before running process. ie: com.example.android.apis 17EGL checks /proc/<proc_id>/cmdline for match during init and sets debug functions in eglMakeCurrent 18EGL will bind to socket and wait for incoming connection, so need to adb forward tcp:5039 tcp:5039. Port can be overridden by adb shell setprop debug.egl.debug_port <port> 19If create socket failed, EGL will try to open /data/local/tmp/dump.gles2dbg for write, and exit when 8MB is written. The relevant properties are ...debug_forceUseFile, ...debug_maxFileSize, and ...debug_filePath 20Now manually start the process on device; on host, open development/tools/glesv2debugger/.project and run/debug as Eclipse application, then Window->Show View->Other->Debug->OpenGL ES 2.0 Debugger, then Connect or Open File 21