Content-Length: 287932 | pFad | http://github.com/NativeScript/napi-android/commit/2fae8d055e925c17d32423e0c8ce5492466b55cc

6A fix: ns debug android command · NativeScript/napi-android@2fae8d0 · GitHub
Skip to content

Commit 2fae8d0

Browse files
committed
fix: ns debug android command
1 parent f47f834 commit 2fae8d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: test-app/app/src/main/java/com/tns/RuntimeHelper.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public final class RuntimeHelper {
2323
private RuntimeHelper() {
2424
}
2525

26-
// private static AndroidJsV8Inspector v8Inspector;
26+
private static AndroidJsV8Inspector v8Inspector;
2727

2828
// hasErrorIntent tells you if there was an event (with an uncaught
2929
// exception) raised from ErrorReport
@@ -151,8 +151,8 @@ public static Runtime initRuntime(Context context) {
151151
runtime = Runtime.initializeRuntimeWithConfiguration(config);
152152
if (isDebuggable) {
153153
try {
154-
// v8Inspector = new AndroidJsV8Inspector(context.getFilesDir().getAbsolutePath(), context.getPackageName());
155-
// v8Inspector.start();
154+
v8Inspector = new AndroidJsV8Inspector(context.getFilesDir().getAbsolutePath(), context.getPackageName());
155+
v8Inspector.start();
156156

157157
// the following snippet is used as means to notify the VSCode extension
158158
// debugger that the debugger agent has started
@@ -176,7 +176,7 @@ public static Runtime initRuntime(Context context) {
176176
shouldBreak = true;
177177
}
178178

179-
// v8Inspector.waitForDebugger(shouldBreak);
179+
v8Inspector.waitForDebugger(shouldBreak);
180180
} catch (IOException e) {
181181
if (Util.isDebuggableApp(context)) {
182182
e.printStackTrace();

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/napi-android/commit/2fae8d055e925c17d32423e0c8ce5492466b55cc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy