Skip to content

Commit 6bebc5f

Browse files
Mihail Slavchevatanasovg
authored andcommitted
fix debugger
1 parent 2b63ea6 commit 6bebc5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/src/com/tns/JsDebugger.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ int getDebuggerPortFromEnvironment()
351351
if (logger.isEnabled()) logger.write("shouldDebugBreakFlag=" + shouldDebugBreakFlag);
352352

353353
if (shouldDebugBreakFlag)
354-
{
355354
{
355+
356356
try
357357
{
358358
Thread.sleep(3 * 1000);
@@ -575,8 +575,8 @@ public static boolean shouldDebugBreak(Context context)
575575
return false;
576576
}
577577

578-
String appRoot = context.getFilesDir().getPath() + File.separator;
579-
File debugBreakFile = new File(appRoot, DEBUG_BREAK_FILENAME);
578+
File baseDir = context.getExternalFilesDir(null);
579+
File debugBreakFile = new File(baseDir, DEBUG_BREAK_FILENAME);
580580
if (debugBreakFile.exists())
581581
{
582582
debugBreakFile.delete();

0 commit comments

Comments
 (0)