Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize #6

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/v8/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ sidebar_position: 3
3. 编译源代码:

```shell
tools/dev/gm.py arm64.release
tools/dev/gm.py arm64.debug
```

或者,编译源代码并立即运行测试:

```shell
tools/dev/gm.py arm64.release.check
tools/dev/gm.py arm64.debug.check
```
10 changes: 5 additions & 5 deletions docs/v8/clion-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ console.log(a + b + c);
- Build: `<None>`
- Clean: `<None>`

![custom-build-targets.png](img/custom-build-targets.png)
![custom-build-targets.png](clion-debugging/img/custom-build-targets.png)

5. 完成配置后,点击 `OK` 或 `Apply` 来保存更改。

Expand All @@ -98,7 +98,7 @@ console.log(a + b + c);
- Program arguments: `debug.js`
- 其它设置保持默认

![run-debug-configurations.png](img/run-debug-configurations.png)
![run-debug-configurations.png](clion-debugging/img/run-debug-configurations.png)

选中 `Store as project file` 后将自动保存配置至 `.run/Debug.run.xml` 文件。其内容如下:

Expand All @@ -125,16 +125,16 @@ console.log(a + b + c);

2. 在文件末尾的 `main` 函数处设置断点,并右键断点图标选择 `Use file name only`。

![breakpoints.png](img/breakpoints.png)
![breakpoints.png](clion-debugging/img/breakpoints.png)

## 开始调试

点击右上角的甲虫图标启动调试。

程序将在 `main` 函数处暂停。

![main.png](img/main.png)
![main.png](clion-debugging/img/main.png)

至此,可以愉快地进行调试了,比如 `Step Into` 一个函数。

![shell-main.png](img/shell-main.png)
![shell-main.png](clion-debugging/img/shell-main.png)
File renamed without changes
10 changes: 10 additions & 0 deletions docs/v8/source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ git pull
```shell
gclient sync
```

## 设置聚焦隐私(可选)

从「聚焦」搜索中排除源代码文件夹。

![siri-and-spotlight.png](source-code/img/siri-and-spotlight.png)

![privacy.png](source-code/img/privacy.png)

从「聚焦」搜索中排除特定文件和文件夹。请参阅 [防止「聚焦」在文件中搜索](https://support.apple.com/zh-cn/guide/mac-help/mchl1bb43b84/14.0/mac/14.0)。
Binary file added docs/v8/source-code/img/privacy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/v8/source-code/img/siri-and-spotlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const config: Config = {
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},

presets: [
Expand All @@ -48,7 +48,7 @@ const config: Config = {

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
image: 'img/social-card.jpg',
navbar: {
title: 'Env Doc',
logo: {
Expand Down
Binary file removed static/img/docusaurus-social-card.jpg
Binary file not shown.
Binary file removed static/img/docusaurus.png
Binary file not shown.
Binary file modified static/img/favicon.ico
Binary file not shown.
10 changes: 9 additions & 1 deletion static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/social-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading