From cd479ac11a122c26b17f9e45542326bb552339ca Mon Sep 17 00:00:00 2001 From: lorenzolewis Date: Mon, 11 Dec 2023 16:04:22 +0000 Subject: [PATCH] [ci] format --- src/content/docs/_it/guides/debug/vs-code.mdx | 109 ++++++++-------- .../docs/_ko/guides/debug/application.mdx | 2 +- src/content/docs/_ko/guides/debug/vs-code.mdx | 109 ++++++++-------- .../docs/fr/guides/debug/application.mdx | 2 +- src/content/docs/fr/guides/debug/index.mdx | 11 +- src/content/docs/fr/guides/debug/vs-code.mdx | 109 ++++++++-------- src/content/docs/guides/debug/application.mdx | 9 +- src/content/docs/guides/debug/clion.mdx | 11 +- src/content/docs/guides/debug/index.mdx | 8 +- src/content/docs/guides/debug/vs-code.mdx | 117 +++++++++--------- .../docs/zh-CN/guides/debug/application.mdx | 2 +- src/content/docs/zh-CN/guides/debug/index.mdx | 11 +- .../docs/zh-CN/guides/debug/vs-code.mdx | 109 ++++++++-------- 13 files changed, 307 insertions(+), 302 deletions(-) diff --git a/src/content/docs/_it/guides/debug/vs-code.mdx b/src/content/docs/_it/guides/debug/vs-code.mdx index 130abbfec0..7c264160d3 100644 --- a/src/content/docs/_it/guides/debug/vs-code.mdx +++ b/src/content/docs/_it/guides/debug/vs-code.mdx @@ -13,36 +13,36 @@ Crea un file `.vscode/launch.json` e incolla il contenuto JSON sottostante in es ```json title=".vscode/launch.json" { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Tauri Development Debug", - "cargo": { - "args": [ - "build", - "--manifest-path=./src-tauri/Cargo.toml", - "--no-default-features" - ] - }, - // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:dev" - }, - { - "type": "lldb", - "request": "launch", - "name": "Tauri Production Debug", - "cargo": { - "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] - }, - // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:build" - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Tauri Development Debug", + "cargo": { + "args": [ + "build", + "--manifest-path=./src-tauri/Cargo.toml", + "--no-default-features" + ] + }, + // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:dev" + }, + { + "type": "lldb", + "request": "launch", + "name": "Tauri Production Debug", + "cargo": { + "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] + }, + // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:build" + } + ] } ``` @@ -52,34 +52,33 @@ Nota che non utilizza il Tauri CLI, quindi le esclusive funzioni CLI non vengono ```json title=".vscode/tasks.json" { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "ui:dev", - "type": "shell", - // `dev` keeps running in the background - // ideally you should also configure a `problemMatcher` - // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson - "isBackground": true, - // change this to your `beforeDevCommand`: - "command": "yarn", - "args": ["dev"] - }, - { - "label": "ui:build", - "type": "shell", - // change this to your `beforeBuildCommand`: - "command": "yarn", - "args": ["build"] - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "ui:dev", + "type": "shell", + // `dev` keeps running in the background + // ideally you should also configure a `problemMatcher` + // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson + "isBackground": true, + // change this to your `beforeDevCommand`: + "command": "yarn", + "args": ["dev"] + }, + { + "label": "ui:build", + "type": "shell", + // change this to your `beforeBuildCommand`: + "command": "yarn", + "args": ["build"] + } + ] } ``` Ora puoi impostare breakpoint in `src-tauri/src/main.rs` o in qualsiasi altro file Rust e iniziare il processo di debug premendo `F5`. [`vscode-lldb`]: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb - -[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process \ No newline at end of file +[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process diff --git a/src/content/docs/_ko/guides/debug/application.mdx b/src/content/docs/_ko/guides/debug/application.mdx index 12c8b28516..b0e0630390 100644 --- a/src/content/docs/_ko/guides/debug/application.mdx +++ b/src/content/docs/_ko/guides/debug/application.mdx @@ -78,7 +78,7 @@ tauri::Builder::default() npm="npm run tauri build -- --debug" yarn="yarn tauri build --debug" pnpm="pnpm tauri build --debug" - cargo="cargo tauri build --debug" + cargo="cargo tauri build --debug" /> 일반 빌드 및 개발 프로세스와 마찬가지로 빌드는 이 명령을 처음 실행할 때 약간의 시간이 걸리지만 후속 실행에서는 훨씬 더 빠릅니다. 최종 번들 앱에는 개발 콘솔이 활성화되어 있으며 `src-tauri/target/debug/bundle`에 배치됩니다. diff --git a/src/content/docs/_ko/guides/debug/vs-code.mdx b/src/content/docs/_ko/guides/debug/vs-code.mdx index 7ac9e95567..b5f574d6f9 100644 --- a/src/content/docs/_ko/guides/debug/vs-code.mdx +++ b/src/content/docs/_ko/guides/debug/vs-code.mdx @@ -15,36 +15,36 @@ This guide will walk you through setting up VS Code for debugging the [Core Proc ```json title=".vscode/launch.json" { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Tauri Development Debug", - "cargo": { - "args": [ - "build", - "--manifest-path=./src-tauri/Cargo.toml", - "--no-default-features" - ] - }, - // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:dev" - }, - { - "type": "lldb", - "request": "launch", - "name": "Tauri Production Debug", - "cargo": { - "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] - }, - // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:build" - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Tauri Development Debug", + "cargo": { + "args": [ + "build", + "--manifest-path=./src-tauri/Cargo.toml", + "--no-default-features" + ] + }, + // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:dev" + }, + { + "type": "lldb", + "request": "launch", + "name": "Tauri Production Debug", + "cargo": { + "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] + }, + // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:build" + } + ] } ``` @@ -54,34 +54,33 @@ Tauri CLI를 사용하지 않으므로 전용 CLI 기능이 실행되지 않습 ```json title=".vscode/tasks.json" { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "ui:dev", - "type": "shell", - // `dev` keeps running in the background - // ideally you should also configure a `problemMatcher` - // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson - "isBackground": true, - // change this to your `beforeDevCommand`: - "command": "yarn", - "args": ["dev"] - }, - { - "label": "ui:build", - "type": "shell", - // change this to your `beforeBuildCommand`: - "command": "yarn", - "args": ["build"] - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "ui:dev", + "type": "shell", + // `dev` keeps running in the background + // ideally you should also configure a `problemMatcher` + // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson + "isBackground": true, + // change this to your `beforeDevCommand`: + "command": "yarn", + "args": ["dev"] + }, + { + "label": "ui:build", + "type": "shell", + // change this to your `beforeBuildCommand`: + "command": "yarn", + "args": ["build"] + } + ] } ``` 이제, `src-tauri/src/main.rs` 혹은 다른 Rust 파일에 중단점을 설정하고 `F5`를 눌러 디버깅을 시작할 수 있습니다. [`vscode-lldb`]: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb - -[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process \ No newline at end of file +[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process diff --git a/src/content/docs/fr/guides/debug/application.mdx b/src/content/docs/fr/guides/debug/application.mdx index 5ba30bc9e9..0aa15eeff6 100644 --- a/src/content/docs/fr/guides/debug/application.mdx +++ b/src/content/docs/fr/guides/debug/application.mdx @@ -77,7 +77,7 @@ Pour créer une version de débogage, exécutez la commande `tauri build --debug npm="npm run tauri build -- --debug" yarn="yarn tauri build --debug" pnpm="pnpm tauri build --debug" - cargo="cargo tauri build --debug" + cargo="cargo tauri build --debug" /> Comme les processus de construction et de développement normaux, la construction prend un certain temps la première fois que vous exécutez cette commande, mais est beaucoup plus rapide lors des exécutions suivantes. L'application groupée finale a la console de développement activée et est placée dans `src-tauri/target/debug/bundle`. diff --git a/src/content/docs/fr/guides/debug/index.mdx b/src/content/docs/fr/guides/debug/index.mdx index 9c64c4ea79..7b4d5d8a41 100644 --- a/src/content/docs/fr/guides/debug/index.mdx +++ b/src/content/docs/fr/guides/debug/index.mdx @@ -6,7 +6,10 @@ description: Conseils et astuces pour votre débogage import { LinkCard, CardGrid } from '@astrojs/starlight/components'; - - - - \ No newline at end of file + + + + diff --git a/src/content/docs/fr/guides/debug/vs-code.mdx b/src/content/docs/fr/guides/debug/vs-code.mdx index c880efb471..992d6503b7 100644 --- a/src/content/docs/fr/guides/debug/vs-code.mdx +++ b/src/content/docs/fr/guides/debug/vs-code.mdx @@ -14,36 +14,36 @@ Créez un fichier `.vscode/launch.json` et collez-y le contenu JSON ci-dessous : ```json title=".vscode/launch.json" { - // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. - // Survolez pour afficher les descriptions des attributs existants. - // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Débogage de la production de Tauri", - "cargo": { - "args": [ - "build", - "--manifest-path=./src-tauri/Cargo.toml", - "--no-default-features" - ] - }, - // La tâche pour `beforeDevCommand` si elle est utilisée, doit être configurée dans `.vscode/tasks.json` - "preLaunchTask": "ui:dev" - }, - { - "type": "lldb", - "request": "launch", - "name": "Debug de production de Tauri", - "cargo": { - "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] - }, - // La tâche pour `beforeBuildCommand` si elle est utilisée, doit être configurée dans `.vscode/tasks.json` - "preLaunchTask": "ui:build" - } - ] + // Utilisez IntelliSense pour en savoir plus sur les attributs possibles. + // Survolez pour afficher les descriptions des attributs existants. + // Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Débogage de la production de Tauri", + "cargo": { + "args": [ + "build", + "--manifest-path=./src-tauri/Cargo.toml", + "--no-default-features" + ] + }, + // La tâche pour `beforeDevCommand` si elle est utilisée, doit être configurée dans `.vscode/tasks.json` + "preLaunchTask": "ui:dev" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug de production de Tauri", + "cargo": { + "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] + }, + // La tâche pour `beforeBuildCommand` si elle est utilisée, doit être configurée dans `.vscode/tasks.json` + "preLaunchTask": "ui:build" + } + ] } ``` @@ -53,34 +53,33 @@ Notez qu'il n'utilise pas la CLI Tauri, donc les fonctionnalités CLI exclusives ```json title=".vscode/tasks.json" { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "ui:dev", - "type": "shell", - // `dev` keeps running in the background - // ideally you should also configure a `problemMatcher` - // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson - "isBackground": true, - // change this to your `beforeDevCommand`: - "command": "yarn", - "args": ["dev"] - }, - { - "label": "ui:build", - "type": "shell", - // change this to your `beforeBuildCommand`: - "command": "yarn", - "args": ["build"] - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "ui:dev", + "type": "shell", + // `dev` keeps running in the background + // ideally you should also configure a `problemMatcher` + // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson + "isBackground": true, + // change this to your `beforeDevCommand`: + "command": "yarn", + "args": ["dev"] + }, + { + "label": "ui:build", + "type": "shell", + // change this to your `beforeBuildCommand`: + "command": "yarn", + "args": ["build"] + } + ] } ``` Vous pouvez maintenant définir des points d'arrêt dans `src-tauri/src/main.rs` ou tout autre fichier Rust et commencer le débogage en appuyant sur `F5`. [`vscode-lldb`]: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb - -[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process \ No newline at end of file +[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process diff --git a/src/content/docs/guides/debug/application.mdx b/src/content/docs/guides/debug/application.mdx index 807094d5b6..4d9ec92adc 100644 --- a/src/content/docs/guides/debug/application.mdx +++ b/src/content/docs/guides/debug/application.mdx @@ -1,9 +1,10 @@ --- title: Application Debug --- -{/*TODO: REVISE COPY TO V2 */} -{/*TODO: Update links and internal navigation */} -{/*TODO: Revise this change: Application Debugging > Application Debug */} + +{/* TODO: REVISE COPY TO V2 */} +{/* TODO: Update links and internal navigation */} +{/* TODO: Revise this change: Application Debugging > Application Debug */} import CommandTabs from '@components/CommandTabs.astro'; @@ -82,7 +83,7 @@ To create a debug build, run the `tauri build --debug` command. npm="npm run tauri build -- --debug" yarn="yarn tauri build --debug" pnpm="pnpm tauri build --debug" - cargo="cargo tauri build --debug" + cargo="cargo tauri build --debug" /> Like the normal build and dev processes, building takes some time the first time you run this command but is significantly faster on subsequent runs. diff --git a/src/content/docs/guides/debug/clion.mdx b/src/content/docs/guides/debug/clion.mdx index 4465cb806c..11eeaf58d6 100644 --- a/src/content/docs/guides/debug/clion.mdx +++ b/src/content/docs/guides/debug/clion.mdx @@ -1,10 +1,11 @@ --- title: Debug in CLion --- -{/*TODO: REVISE COPY TO V2 */} -{/*TODO: Update links and internal navigation */} -{/*TODO: Add support to light/dark mode images */} -{/*TODO: Revise this change: Debugging in CLion > Debug in CLion */} + +{/* TODO: REVISE COPY TO V2 */} +{/* TODO: Update links and internal navigation */} +{/* TODO: Add support to light/dark mode images */} +{/* TODO: Revise this change: Debugging in CLion > Debug in CLion */} In this guide, we’ll be setting up IntelliJ CLion for debugging the [Core Process of your Tauri app]. @@ -14,7 +15,7 @@ You need to install the [IntelliJ Rust Plugin](https://plugins.jetbrains.com/plu ## Top-level Cargo Workspace -By default, Tauri places the Rust project in a subdirectory called `src-tauri`. CLion may not recognize Cargo projects that are not at the top-level, in which case you should be able to attach it by using `Cargo -> Attach Cargo project`. If this option does not work, you will need to create a top-level Workspace that just points to the main `Cargo.toml` file: +By default, Tauri places the Rust project in a subdirectory called `src-tauri`. CLion may not recognize Cargo projects that are not at the top-level, in which case you should be able to attach it by using `Cargo -> Attach Cargo project`. If this option does not work, you will need to create a top-level Workspace that just points to the main `Cargo.toml` file: ```toml title=Cargo.toml [workspace] diff --git a/src/content/docs/guides/debug/index.mdx b/src/content/docs/guides/debug/index.mdx index d646361e45..1f0e268dc5 100644 --- a/src/content/docs/guides/debug/index.mdx +++ b/src/content/docs/guides/debug/index.mdx @@ -6,7 +6,7 @@ description: Tips and tricks for your debugging workflow import { LinkCard, CardGrid } from '@astrojs/starlight/components'; - - - - \ No newline at end of file + + + + diff --git a/src/content/docs/guides/debug/vs-code.mdx b/src/content/docs/guides/debug/vs-code.mdx index 5332cc4dcd..3d7c7636f7 100644 --- a/src/content/docs/guides/debug/vs-code.mdx +++ b/src/content/docs/guides/debug/vs-code.mdx @@ -1,8 +1,9 @@ --- title: Debug in VS Code --- -{/*TODO: REVISE COPY TO V2 */} -{/*TODO: Revise this change: Debugging in VS Code > Debug in VS Code */} + +{/* TODO: REVISE COPY TO V2 */} +{/* TODO: Revise this change: Debugging in VS Code > Debug in VS Code */} This guide will walk you through setting up VS Code for debugging the [Core Process of your Tauri app]. @@ -18,36 +19,36 @@ Create a `.vscode/launch.json` file and paste the below JSON contents into it: ```json title=".vscode/launch.json" { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Tauri Development Debug", - "cargo": { - "args": [ - "build", - "--manifest-path=./src-tauri/Cargo.toml", - "--no-default-features" - ] - }, - // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:dev" - }, - { - "type": "lldb", - "request": "launch", - "name": "Tauri Production Debug", - "cargo": { - "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] - }, - // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:build" - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Tauri Development Debug", + "cargo": { + "args": [ + "build", + "--manifest-path=./src-tauri/Cargo.toml", + "--no-default-features" + ] + }, + // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:dev" + }, + { + "type": "lldb", + "request": "launch", + "name": "Tauri Production Debug", + "cargo": { + "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] + }, + // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:build" + } + ] } ``` @@ -57,36 +58,36 @@ Note that it does not use the Tauri CLI, so exclusive CLI features are not execu ```json title=".vscode/tasks.json" { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "ui:dev", - "type": "shell", - // `dev` keeps running in the background - // ideally you should also configure a `problemMatcher` - // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson - "isBackground": true, - // change this to your `beforeDevCommand`: - "command": "yarn", - "args": ["dev"] - }, - { - "label": "ui:build", - "type": "shell", - // change this to your `beforeBuildCommand`: - "command": "yarn", - "args": ["build"] - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "ui:dev", + "type": "shell", + // `dev` keeps running in the background + // ideally you should also configure a `problemMatcher` + // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson + "isBackground": true, + // change this to your `beforeDevCommand`: + "command": "yarn", + "args": ["dev"] + }, + { + "label": "ui:build", + "type": "shell", + // change this to your `beforeBuildCommand`: + "command": "yarn", + "args": ["build"] + } + ] } ``` Now you can set breakpoints in `src-tauri/src/main.rs` or any other Rust file and start debugging by pressing `F5`. -{/* +{/_ TODO: Update this to the equivalent: references/architecture/process-model.md#the-core-process - */} -[core process of your tauri app]: ../../references/architecture/process-model.md#the-core-process \ No newline at end of file +_/} +[core process of your tauri app]: ../../references/architecture/process-model.md#the-core-process diff --git a/src/content/docs/zh-CN/guides/debug/application.mdx b/src/content/docs/zh-CN/guides/debug/application.mdx index 0567f3721c..742af8d554 100644 --- a/src/content/docs/zh-CN/guides/debug/application.mdx +++ b/src/content/docs/zh-CN/guides/debug/application.mdx @@ -77,7 +77,7 @@ tauri::Builder::default() npm="npm run tauri build -- --debug" yarn="yarn tauri build --debug" pnpm="pnpm tauri build --debug" - cargo="cargo tauri build --debug" + cargo="cargo tauri build --debug" /> 일반 빌드 및 개발 프로세스와 마찬가지로 빌드는 이 명령을 처음 실행할 때 약간의 시간이 걸리지만 후속 실행에서는 훨씬 더 빠릅니다. 최종 번들 앱에는 개발 콘솔이 활성화되어 있으며 `src-tauri/target/debug/bundle`에 배치됩니다. diff --git a/src/content/docs/zh-CN/guides/debug/index.mdx b/src/content/docs/zh-CN/guides/debug/index.mdx index 21c428db7d..d08c110269 100644 --- a/src/content/docs/zh-CN/guides/debug/index.mdx +++ b/src/content/docs/zh-CN/guides/debug/index.mdx @@ -6,7 +6,10 @@ description: T디버깅 작업 흐름을 위한 팁과 요령 import { LinkCard, CardGrid } from '@astrojs/starlight/components'; - - - - \ No newline at end of file + + + + diff --git a/src/content/docs/zh-CN/guides/debug/vs-code.mdx b/src/content/docs/zh-CN/guides/debug/vs-code.mdx index b9a115f94b..d0f9198037 100644 --- a/src/content/docs/zh-CN/guides/debug/vs-code.mdx +++ b/src/content/docs/zh-CN/guides/debug/vs-code.mdx @@ -14,36 +14,36 @@ This guide will walk you through setting up VS Code for debugging the [Core Proc ```json title=".vscode/launch.json" { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Tauri Development Debug", - "cargo": { - "args": [ - "build", - "--manifest-path=./src-tauri/Cargo.toml", - "--no-default-features" - ] - }, - // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:dev" - }, - { - "type": "lldb", - "request": "launch", - "name": "Tauri Production Debug", - "cargo": { - "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] - }, - // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` - "preLaunchTask": "ui:build" - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Tauri Development Debug", + "cargo": { + "args": [ + "build", + "--manifest-path=./src-tauri/Cargo.toml", + "--no-default-features" + ] + }, + // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:dev" + }, + { + "type": "lldb", + "request": "launch", + "name": "Tauri Production Debug", + "cargo": { + "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] + }, + // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` + "preLaunchTask": "ui:build" + } + ] } ``` @@ -53,34 +53,33 @@ Tauri CLI를 사용하지 않으므로 전용 CLI 기능이 실행되지 않습 ```json title=".vscode/tasks.json" { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "ui:dev", - "type": "shell", - // `dev` keeps running in the background - // ideally you should also configure a `problemMatcher` - // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson - "isBackground": true, - // change this to your `beforeDevCommand`: - "command": "yarn", - "args": ["dev"] - }, - { - "label": "ui:build", - "type": "shell", - // change this to your `beforeBuildCommand`: - "command": "yarn", - "args": ["build"] - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "ui:dev", + "type": "shell", + // `dev` keeps running in the background + // ideally you should also configure a `problemMatcher` + // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson + "isBackground": true, + // change this to your `beforeDevCommand`: + "command": "yarn", + "args": ["dev"] + }, + { + "label": "ui:build", + "type": "shell", + // change this to your `beforeBuildCommand`: + "command": "yarn", + "args": ["build"] + } + ] } ``` 이제, `src-tauri/src/main.rs` 혹은 다른 Rust 파일에 중단점을 설정하고 `F5`를 눌러 디버깅을 시작할 수 있습니다. [`vscode-lldb`]: https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb - -[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process \ No newline at end of file +[Core Process of your Tauri app]: ../../references/architecture/process-model.md#the-core-process