File tree Expand file tree Collapse file tree
build-artifacts/project-template-gradle/src/main/java/com/tns
test-app/app/src/main/java/com/tns Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,8 +132,13 @@ public static Runtime initRuntime(Application app)
132132 try {
133133 v8Inspector = new AndroidJsV8Inspector (app , logger );
134134 v8Inspector .start ();
135- }
136- catch (IOException e ) {
135+ File debugBreakFile = new File ("/data/local/tmp" , app .getPackageName () + "-debugger-started" );
136+ if (debugBreakFile .exists () && !debugBreakFile .isDirectory () && debugBreakFile .length () == 0 ) {
137+ java .io .FileWriter fileWriter = new java .io .FileWriter (debugBreakFile );
138+ fileWriter .write ("started" );
139+ fileWriter .close ();
140+ }
141+ } catch (IOException e ) {
137142 e .printStackTrace ();
138143 }
139144 }
Original file line number Diff line number Diff line change @@ -132,6 +132,12 @@ public static Runtime initRuntime(Application app) {
132132 try {
133133 v8Inspector = new AndroidJsV8Inspector (app , logger );
134134 v8Inspector .start ();
135+ File debugBreakFile = new File ("/data/local/tmp" , app .getPackageName () + "-debugger-started" );
136+ if (debugBreakFile .exists () && !debugBreakFile .isDirectory () && debugBreakFile .length () == 0 ) {
137+ java .io .FileWriter fileWriter = new java .io .FileWriter (debugBreakFile );
138+ fileWriter .write ("started" );
139+ fileWriter .close ();
140+ }
135141 } catch (IOException e ) {
136142 e .printStackTrace ();
137143 }
You can’t perform that action at this time.
0 commit comments