com.eclipsesource.v8.V8.setFlags()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中com.eclipsesource.v8.V8.setFlags()方法的一些代码示例,展示了V8.setFlags()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。V8.setFlags()方法的具体详情如下:
包路径:com.eclipsesource.v8.V8
类名称:V8
方法名:setFlags

V8.setFlags介绍

[英]Sets the V8 flags on the platform. All runtimes will be created with the same flags. Flags must be set before the runtime is created.
[中]设置平台上的V8标志。所有运行时都将使用相同的标志创建。必须在创建运行时之前设置标志。

代码示例

代码示例来源:origin: eclipsesource/J2V8

/**
 * Utility method for simplification of configuring V8 for debugging support.
 */
public static void configureV8ForDebugging() {
  try {
    V8.setFlags("-expose-debug-as=" + DEBUG_OBJECT_NAME);
  } catch (Throwable t) {
    t.printStackTrace();
  }
}

代码示例来源:origin: eclipsesource/J2V8

/**
 * Utility method for simplification of configuring V8 for debugging support.
 */
public static void configureV8ForDebugging() {
  try {
    V8.setFlags("-expose-debug-as=" + DEBUG_OBJECT_NAME);
  } catch (Throwable t) {
    t.printStackTrace();
  }
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
  handler = new DebugHandler(v8);
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
  debugHandler = new DebugHandler(v8);
  debugHandler.setScriptBreakpoint("script", 2);
  breakHandler = mock(BreakHandler.class);
  debugHandler.addBreakHandler(breakHandler);
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
  debugHandler = new DebugHandler(v8);
  debugHandler.setScriptBreakpoint("script", 14);
  breakHandler = mock(BreakHandler.class);
  debugHandler.addBreakHandler(breakHandler);
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
  debugHandler = new DebugHandler(v8);
  debugHandler.setScriptBreakpoint("script", 7);
  breakHandler = mock(BreakHandler.class);
  debugHandler.addBreakHandler(breakHandler);
}

代码示例来源:origin: eclipsesource/J2V8

@Before
public void setup() {
  V8.setFlags("--expose-debug-as=" + DebugHandler.DEBUG_OBJECT_NAME);
  v8 = V8.createV8Runtime();
  debugHandler = new DebugHandler(v8);
  debugHandler.setScriptBreakpoint("script", 5);
  breakHandler = mock(BreakHandler.class);
  debugHandler.addBreakHandler(breakHandler);
}

相关文章

V8类方法