白带多用什么药效果好| 检验科是做什么的| 满满是什么意思| 水痘什么样| 开字五行属什么| 吃辣拉肚子是什么原因| 丁胺卡那又叫什么药名| elle是什么档次的牌子| 什么奶茶好喝| 小孩过敏吃什么药最好| 性冷淡吃什么药最好| 什么叫有气质| 南非叶有什么功效| 一个黑一个今念什么| 蜂蜜是什么糖| 心脏怕什么| 朴实无华是什么意思| 跑步腰疼是什么原因| 世界七大奇迹分别是什么| 四个火是什么字| 缺碘有什么症状| 什么是螨虫| 什么是类风湿性关节炎| 双一流大学是什么| 陪护是什么意思| 血脂高低看什么指标| 脂肪液化是什么意思| 天麻有什么作用| 血糖高吃什么降得快| 丛林法则是什么意思| 吃紫甘蓝有什么好处| 女性口臭都是什么原因| 小暑是什么意思啊| 排查是什么意思| 2月18什么星座| 今年是什么命| 铁观音适合什么季节喝| 牛仔蓝是什么颜色| 番薯什么时候传入中国| 六甲什么意思| 肚子咕噜响是什么原因| 玫瑰糠疹吃什么药| 八月是什么星座| 左眼皮跳跳好事要来到是什么歌| 忖量是什么意思| 刑太岁是什么意思| 乩童是什么意思| 失代偿期的肝是属于什么程度| 梦见别人装修房子是什么预兆| 103是什么意思| 玻璃体切除后对眼睛有什么影响| 身上痒但是什么都没有| 什么水果含糖量低| 做妇科检查前需要注意什么| 王字加一笔是什么字| 李白字什么号什么| 额娘是什么意思| 牙齿发软是什么原因| 玫瑰花有什么作用| 仓鼠能吃什么| tat是什么意思| 和尚化缘的碗叫什么| 肚子中间疼是什么原因| 泌尿科主要检查什么| 靶子是什么意思| 什么是崩漏| 万言万当不如一默是什么意思| 爱是什么偏旁| 三点水一个高念什么| k是什么元素| hs医学上是什么意思| 雨花茶是什么茶| 过期的牛奶有什么用| 吸烟有害健康为什么国家还生产烟| 下午4点半是什么时辰| 枕戈待旦什么意思| 梦到头发白了是什么意思| 什么人不适合吃榴莲| 车挂件挂什么保平安好| 坐支是什么意思| denim是什么意思| 风邪是什么| 关灯吃面什么意思| 什么人容易得心肌炎| 总是很困想睡觉是什么原因| 看正月初一是什么生肖| 鸡血藤长什么样子图片| 表白是什么意思| 石英岩玉是什么| 鼠目寸光是什么意思| 梦见别人流血是什么预兆| 鸡和什么属相最配对| 1940年出生属什么生肖| 水彩笔用什么能洗掉| 什么的山| 郑五行属什么| 异卵双胞胎是什么意思| 慢性宫颈炎是什么意思| 乌鸡放什么炖补气补血| g750和au750有什么区别| 低级别上皮内瘤变是什么意思| 浙江大学什么专业最好| 心病是什么意思| 什么也别说| 相生什么意思| 胃疼需要做什么检查| 尿胆原阳性是什么病| reebok是什么牌子| 五指毛桃有什么作用| 为什么膝盖弯曲就疼痛| 胸腔疼挂什么科| 小便不利是什么意思| 市级三好学生有什么用| 什么是肩袖损伤| 谷草谷丙偏高代表什么| 哈密瓜苦是什么原因| 核子是什么| 无菌敷贴是干什么用的| 草果在炖肉起什么作用| 蚂蚁的触角有什么作用| 枸杞有什么用| 热感冒吃什么药好得快| 脑血管痉挛是什么原因引起的| 喉咙痛喝什么饮料| 人体最大器官是什么| 什么叫两会| 晕车药叫什么名字| 茔是什么意思| 抽烟对女生有什么危害| 尿潴留是什么意思| 什么叫肠上皮化生| 突然视力模糊是什么原因引起的| 脚心疼是什么原因| 芙蕖是什么花| 蜈蚣最怕什么药| 喉咙痒咳嗽吃什么药好| 风花雪月什么意思| 十月二十三号是什么星座| 肺炎为什么要7到10天才能好| nuxe是什么牌子护肤品| 属鸡的守护神是什么菩萨| 谨言慎行下一句是什么| 为什么纯牛奶容易爆痘| 什么金属最贵| 上呼吸道感染吃什么消炎药| 肾结石是什么引起的| 染发有什么危害| 前列腺炎什么症状| 支原体感染用什么药| psa是什么| 经常头昏是什么原因| 灵隐寺求什么最灵| 雷诺综合症是什么病| 女人依赖男人说明什么| 女性长胡子是什么原因| lyocell是什么面料| 世界上最高的塔是什么塔| 润是什么生肖| 梦到和死人说话是什么意思| 右脸长痘是什么原因| 月经几个月不来是什么原因| 香皂和肥皂有什么区别| 我的星座是什么| 疳积是什么病| 什么是心脑血管疾病| 儿童用什么牙膏最好可以保护牙齿| 肌酸激酶偏高说明什么| 水乳什么牌子好用| 人为什么要刷牙| 5岁属什么| 拉肚子吃什么| hpy什么意思| 妊娠是什么意思啊| 慷慨什么意思| 1959年属什么生肖| 足金是什么意思| 尿酸为什么会高| 黄什么什么| 包子有什么馅的| 风化是什么意思| 曹仁和曹操什么关系| 阿昔洛韦是什么药| 为什么乳头内陷| 沙特是什么教派| 下肢动脉闭塞吃什么药| 怀孕血压高对胎儿有什么影响| 前列腺炎吃什么药效果好见效快| 心肌酶高是什么原因| 抗结剂是什么| 梦见别人开车撞死人是什么意思| 万劫不复是什么意思| 吃完饭恶心是什么原因| 鲛人是什么意思| 什么饺子馅好吃| 2007年属什么生肖| 肉炒什么菜谱大全| 大米里放什么不生虫子| 妇乐颗粒的功效能治什么病| 什么是塔罗牌| 阑尾粪石是什么| 3月4日是什么星座| au990是什么金| 天天喝绿茶有什么好处和坏处| ca125是什么检查项目| 1939年属什么生肖| 野生黄芪长什么样子的图片| 割掉胆对人有什么影响| friend什么意思中文| 天秤座和什么座最配| 心脏有早搏吃什么药好| 六味地黄丸主治什么| 奠什么意思| 小确幸是什么意思| 普贤菩萨保佑什么生肖| 茶寿为什么是108岁| 上海居住证积分有什么用| 茄子是什么意思| 阴道炎有什么症状| 两个a型血的人生的孩子什么血型| 怀孕吃叶酸有什么用| 孕期长痘痘是什么原因| 猫能看到什么颜色| 是什么车| 经常肚子疼拉肚子是什么原因| 女人吃黄芪有什么好处| 唐氏筛查都查些什么| 便秘和腹泻交替出现是什么意思| 肝脏低密度灶是什么意思| 阴道松弛吃什么药| 什么菜好吃| 什么洗发水去屑效果好| 妈妈的弟弟的老婆叫什么| 什么饺子馅最好吃| 又当又立是什么意思| 奇脉见于什么病| 一加一为什么等于二| 发好人卡是什么意思| 女人细菌感染什么原因引起的| 统招生是什么意思| 嘴巴干苦是什么原因| 不全纵隔子宫是什么意思| 当兵苦到什么程度| 什么是神经衰弱| 爱上一个人是什么感觉| 李元霸为什么怕罗士信| 甲状腺有什么危害| 运费险是什么意思| 肠胃挂什么科| 胃胀是什么原因导致的| 五行缺木是什么意思| 孕期小腿抽筋什么原因| 干咳吃什么药好的快| 双相障碍是什么| 什么叫转基因| 肠胃紊乱吃什么药| 脑瘤早期什么症状| 什么病不能吃牛肉| 农历三月是什么月| 什么叫糙米| bl小说是什么意思| 今年夏天为什么这么热| 晚上睡觉口干是什么原因| 藏红花可以搭配什么泡水喝| 吃什么东西补脑| 百度
Skip to main content

国产新品手机扎堆上市 3月新机数不过来

百度 “铁打的营盘,流水的兵”,继2017年房地产业出现很多重磅地产大佬的职位变动后,2018年“江湖仍不平静”,多家品牌房企接连爆出高管离职,职位涉及执行董事、总裁、总经理等。

Command line switches supported by Electron.

You can use app.commandLine.appendSwitch to append them in your app's main script before the ready event of the app module is emitted:

const { app } = require('electron')
app.commandLine.appendSwitch('remote-debugging-port', '8315')
app.commandLine.appendSwitch('host-rules', 'MAP * 127.0.0.1')

app.whenReady().then(() => {
// Your code here
})

Electron CLI Flags?

--auth-server-whitelist=url?

A comma-separated list of servers for which integrated authentication is enabled.

For example:

--auth-server-whitelist='*example.com, *foobar.com, *baz'

then any url ending with example.com, foobar.com, baz will be considered for integrated authentication. Without * prefix the URL has to match exactly.

--auth-negotiate-delegate-whitelist=url?

A comma-separated list of servers for which delegation of user credentials is required. Without * prefix the URL has to match exactly.

--disable-ntlm-v2?

Disables NTLM v2 for POSIX platforms, no effect elsewhere.

--disable-http-cache?

Disables the disk cache for HTTP requests.

--disable-http2?

Disable HTTP/2 and SPDY/3.1 protocols.

--disable-renderer-backgrounding?

Prevents Chromium from lowering the priority of invisible pages' renderer processes.

This flag is global to all renderer processes, if you only want to disable throttling in one window, you can take the hack of playing silent audio.

--disk-cache-size=size?

Forces the maximum disk space to be used by the disk cache, in bytes.

--enable-logging[=file]?

Prints Chromium's logging to stderr (or a log file).

The ELECTRON_ENABLE_LOGGING environment variable has the same effect as passing --enable-logging.

Passing --enable-logging will result in logs being printed on stderr. Passing --enable-logging=file will result in logs being saved to the file specified by --log-file=..., or to electron_debug.log in the user-data directory if --log-file is not specified.

note

On Windows, logs from child processes cannot be sent to stderr. Logging to a file is the most reliable way to collect logs on Windows.

See also --log-file, --log-level, --v, and --vmodule.

--force-fieldtrials=trials?

Field trials to be forcefully enabled or disabled.

For example: WebRTC-Audio-Red-For-Opus/Enabled/

--host-rules=rules?

A comma-separated list of rules that control how hostnames are mapped.

For example:

  • MAP * 127.0.0.1 Forces all hostnames to be mapped to 127.0.0.1
  • MAP *.google.com proxy Forces all google.com subdomains to be resolved to "proxy".
  • MAP test.com [::1]:77 Forces "test.com" to resolve to IPv6 loopback. Will also force the port of the resulting socket address to be 77.
  • MAP * baz, EXCLUDE www.google.com Remaps everything to "baz", except for "www.google.com".

These mappings apply to the endpoint host in a net request (the TCP connect and host resolver in a direct connection, and the CONNECT in an HTTP proxy connection, and the endpoint host in a SOCKS proxy connection).

--host-resolver-rules=rules?

Like --host-rules but these rules only apply to the host resolver.

--ignore-certificate-errors?

Ignores certificate related errors.

--ignore-connections-limit=domains?

Ignore the connections limit for domains list separated by ,.

--js-flags=flags?

Specifies the flags passed to the V8 engine. In order to enable the flags in the main process, this switch must be passed on startup.

$ electron --js-flags="--harmony_proxies --harmony_collections" your-app

Run node --v8-options or electron --js-flags="--help" in your terminal for the list of available flags. These can be used to enable early-stage JavaScript features, or log and manipulate garbage collection, among other things.

For example, to trace V8 optimization and deoptimization:

$ electron --js-flags="--trace-opt --trace-deopt" your-app

--lang?

Set a custom locale.

--log-file=path?

If --enable-logging is specified, logs will be written to the given path. The parent directory must exist.

Setting the ELECTRON_LOG_FILE environment variable is equivalent to passing this flag. If both are present, the command-line switch takes precedence.

--log-net-log=path?

Enables net log events to be saved and writes them to path.

--log-level=N?

Sets the verbosity of logging when used together with --enable-logging. N should be one of Chrome's LogSeverities.

Note that two complimentary logging mechanisms in Chromium -- LOG() and VLOG() -- are controlled by different switches. --log-level controls LOG() messages, while --v and --vmodule control VLOG() messages. So you may want to use a combination of these three switches depending on the granularity you want and what logging calls are made by the code you're trying to watch.

See Chromium Logging source for more information on how LOG() and VLOG() interact. Loosely speaking, VLOG() can be thought of as sub-levels / per-module levels inside LOG(INFO) to control the firehose of LOG(INFO) data.

See also --enable-logging, --log-level, --v, and --vmodule.

--no-proxy-server?

Don't use a proxy server and always make direct connections. Overrides any other proxy server flags that are passed.

--no-sandbox?

Disables the Chromium sandbox. Forces renderer process and Chromium helper processes to run un-sandboxed. Should only be used for testing.

--proxy-bypass-list=hosts?

Instructs Electron to bypass the proxy server for the given semi-colon-separated list of hosts. This flag has an effect only if used in tandem with --proxy-server.

For example:

const { app } = require('electron')
app.commandLine.appendSwitch('proxy-bypass-list', '<local>;*.google.com;*foo.com;1.2.3.4:5678')

Will use the proxy server for all hosts except for local addresses (localhost, 127.0.0.1 etc.), google.com subdomains, hosts that contain the suffix foo.com and anything at 1.2.3.4:5678.

--proxy-pac-url=url?

Uses the PAC script at the specified url.

--proxy-server=address:port?

Use a specified proxy server, which overrides the system setting. This switch only affects requests with HTTP protocol, including HTTPS and WebSocket requests. It is also noteworthy that not all proxy servers support HTTPS and WebSocket requests. The proxy URL does not support username and password authentication per Chromium issue.

--remote-debugging-port=port?

Enables remote debugging over HTTP on the specified port.

--v=log_level?

Gives the default maximal active V-logging level; 0 is the default. Normally positive values are used for V-logging levels.

This switch only works when --enable-logging is also passed.

See also --enable-logging, --log-level, and --vmodule.

--vmodule=pattern?

Gives the per-module maximal V-logging levels to override the value given by --v. E.g. my_module=2,foo*=3 would change the logging level for all code in source files my_module.* and foo*.*.

Any pattern containing a forward or backward slash will be tested against the whole pathname and not only the module. E.g. */foo/bar/*=2 would change the logging level for all code in the source files under a foo/bar directory.

This switch only works when --enable-logging is also passed.

See also --enable-logging, --log-level, and --v.

--force_high_performance_gpu?

Force using discrete GPU when there are multiple GPUs available.

--force_low_power_gpu?

Force using integrated GPU when there are multiple GPUs available.

--xdg-portal-required-version=version?

Sets the minimum required version of XDG portal implementation to version in order to use the portal backend for file dialogs on linux. File dialogs will fallback to using gtk or kde depending on the desktop environment when the required version is unavailable. Current default is set to 3.

Node.js Flags?

Electron supports some of the CLI flags supported by Node.js.

note

Passing unsupported command line switches to Electron when it is not running in ELECTRON_RUN_AS_NODE will have no effect.

--inspect-brk[=[host:]port]?

Activate inspector on host:port and break at start of user script. Default host:port is 127.0.0.1:9229.

Aliased to --debug-brk=[host:]port.

--inspect-brk-node[=[host:]port]?

Activate inspector on host:port and break at start of the first internal JavaScript script executed when the inspector is available. Default host:port is 127.0.0.1:9229.

--inspect-port=[host:]port?

Set the host:port to be used when the inspector is activated. Useful when activating the inspector by sending the SIGUSR1 signal. Default host is 127.0.0.1.

Aliased to --debug-port=[host:]port.

--inspect[=[host:]port]?

Activate inspector on host:port. Default is 127.0.0.1:9229.

V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug and profile Electron instances. The tools attach to Electron instances via a TCP port and communicate using the Chrome DevTools Protocol.

See the Debugging the Main Process guide for more details.

Aliased to --debug[=[host:]port.

--inspect-publish-uid=stderr,http?

Specify ways of the inspector web socket url exposure.

By default inspector websocket url is available in stderr and under /json/list endpoint on http://host:port/json/list.

--experimental-network-inspection?

Enable support for devtools network inspector events, for visibility into requests made by the nodejs http and http modules.

--no-deprecation?

Silence deprecation warnings.

--throw-deprecation?

Throw errors for deprecations.

--trace-deprecation?

Print stack traces for deprecations.

--trace-warnings?

Print stack traces for process warnings (including deprecations).

--dns-result-order=order?

Set the default value of the verbatim parameter in the Node.js dns.lookup() and dnsPromises.lookup() functions. The value could be:

  • ipv4first: sets default verbatim false.
  • verbatim: sets default verbatim true.

The default is verbatim and dns.setDefaultResultOrder() have higher priority than --dns-result-order.

--diagnostic-dir=directory?

Set the directory to which all Node.js diagnostic output files are written. Defaults to current working directory.

Affects the default output directory of v8.setHeapSnapshotNearHeapLimit.

--no-experimental-global-navigator?

Disable exposition of Navigator API on the global scope from Node.js.

百度