Skip to content
Snippets Groups Projects

Fix remote debugging not working

Merged Pascal Stücker requested to merge issue/remote-debugging into main
3 files
+ 30
6
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -8,6 +8,7 @@
*/
package org.eclipse.set.browser.cef.handlers;
import org.eclipse.set.browser.cef.ChromiumStatic;
import org.eclipse.set.browser.lib.ChromiumLib;
import org.eclipse.set.browser.lib.cef_command_line_t;
@@ -42,6 +43,13 @@ public class AppHandler {
@SuppressWarnings({ "unused", "static-method" }) // Called via JNI
private void on_before_command_line_processing(final long app, final long process_type, final long command_line) {
cef_command_line_t.cefswt_disable_component_update(command_line);
// Disable updating Chromium components from Google servers
cef_command_line_t.cefswt_append_switch(command_line, "disable-component-update", null);
// If debugging is enabled, allow remote debugging
if(ChromiumStatic.getCEFConfiguration().DebugPort != 0)
{
cef_command_line_t.cefswt_append_switch(command_line, "remote-allow-origins", "*");
}
}
}
Loading