Add API for configuring a VM to run in debug mode
Bug: 185211964
Test: run the demo app
Change-Id: I960839037b2f23dbce1552199d9c9e59c36053e2
diff --git a/demo/res/layout/activity_main.xml b/demo/res/layout/activity_main.xml
index 026382f..cd30f35 100644
--- a/demo/res/layout/activity_main.xml
+++ b/demo/res/layout/activity_main.xml
@@ -9,18 +9,43 @@
android:textAlignment="textStart"
tools:context=".MainActivity">
- <ScrollView
- android:id="@+id/scrollview"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ android:orientation="vertical">
- <TextView
- android:id="@+id/textview"
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="#FFEB3B"
- android:fontFamily="monospace"
- android:textColor="#000000" />
- </ScrollView>
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/runStopButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Run" />
+
+ <CheckBox
+ android:id="@+id/debugMode"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="Debug mode" />
+ </LinearLayout>
+
+ <ScrollView
+ android:id="@+id/scrollview"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/consoleOutput"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="#FFEB3B"
+ android:fontFamily="monospace"
+ android:textColor="#000000" />
+ </ScrollView>
+ </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>