##detailed description
package.json:
We've added/adapted specific npm scripts (android:prepare-debug, android:devlive).
These scripts now combine web build, Capacitor sync, and even Android native build (for android:prepare-debug) or live reload launch (for android:devlive).
.vscode/tasks.json:
We've created VS Code tasks that simply call the new npm scripts defined in package.json. These tasks tell VS Code how to run the build and sync steps.
.vscode/launch.json:
We've configured two main debugging options in the "Run and Debug" section of VS Code.
One option is for debugging native Android code; it runs the "prepare" task (android:prepare-debug) before launching the app.
The second option is for debugging web (JavaScript/Vue) code; Start the app with a live reload (android:devlive) and then attach a Chrome debugger to the app's webview.
Now you can select the desired debug configuration in VS Code and VS Code will automatically handle all the previous steps (web build, sync, native build, app launch).
The only remaining issue was a permission error during the global installation of the Ionic CLI. This issue needs to be resolved on your Linux host system (especially if in a Docker environment) to allow npm to properly install the global packages.
This library was built with google gemini
For the functions, don't get confused: I removed the Redmi file
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/1585
**Author:** [@Vincenzoferrara](https://github.com/Vincenzoferrara)
**Created:** 5/25/2025
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (4)
- [`008dace`](https://github.com/advplyr/audiobookshelf-app/commit/008dace70f08c84a54a5a084d0fce6e8b5f433cc) added debug android on vscode
- [`d2295ef`](https://github.com/advplyr/audiobookshelf-app/commit/d2295ef69749f83159bef8b36d458c70a3f9d99d) Update readme.md
- [`305207e`](https://github.com/advplyr/audiobookshelf-app/commit/305207e3850f9c3d24caa38bfbc8fad9f875407b) Merge branch 'advplyr:master' into master
- [`2cce650`](https://github.com/advplyr/audiobookshelf-app/commit/2cce6504d6aa108602e6e6ce0215077898dff9b4) Update launch.json
### 📊 Changes
**2 files changed** (+19 additions, -215 deletions)
<details>
<summary>View changed files</summary>
➕ `.vscode/launch.json` (+18 -0)
📝 `readme.md` (+1 -215)
</details>
### 📄 Description
## Short summary
Added Android debugging directly from VScode
## How did you test this solution?
<!-- tested in VScode on Arch Linux -->
##detailed description
package.json:
We've added/adapted specific npm scripts (android:prepare-debug, android:devlive).
These scripts now combine web build, Capacitor sync, and even Android native build (for android:prepare-debug) or live reload launch (for android:devlive).
.vscode/tasks.json:
We've created VS Code tasks that simply call the new npm scripts defined in package.json. These tasks tell VS Code how to run the build and sync steps.
.vscode/launch.json:
We've configured two main debugging options in the "Run and Debug" section of VS Code.
One option is for debugging native Android code; it runs the "prepare" task (android:prepare-debug) before launching the app.
The second option is for debugging web (JavaScript/Vue) code; Start the app with a live reload (android:devlive) and then attach a Chrome debugger to the app's webview.
Now you can select the desired debug configuration in VS Code and VS Code will automatically handle all the previous steps (web build, sync, native build, app launch).
The only remaining issue was a permission error during the global installation of the Ionic CLI. This issue needs to be resolved on your Linux host system (especially if in a Docker environment) to allow npm to properly install the global packages.
This library was built with google gemini
For the functions, don't get confused: I removed the Redmi file
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1585
Author: @Vincenzoferrara
Created: 5/25/2025
Status: ❌ Closed
Base:
master← Head:master📝 Commits (4)
008daceadded debug android on vscoded2295efUpdate readme.md305207eMerge branch 'advplyr:master' into master2cce650Update launch.json📊 Changes
2 files changed (+19 additions, -215 deletions)
View changed files
➕
.vscode/launch.json(+18 -0)📝
readme.md(+1 -215)📄 Description
Short summary
Added Android debugging directly from VScode
How did you test this solution?
##detailed description
package.json:
We've added/adapted specific npm scripts (android:prepare-debug, android:devlive).
These scripts now combine web build, Capacitor sync, and even Android native build (for android:prepare-debug) or live reload launch (for android:devlive).
.vscode/tasks.json:
We've created VS Code tasks that simply call the new npm scripts defined in package.json. These tasks tell VS Code how to run the build and sync steps.
.vscode/launch.json:
We've configured two main debugging options in the "Run and Debug" section of VS Code.
One option is for debugging native Android code; it runs the "prepare" task (android:prepare-debug) before launching the app.
The second option is for debugging web (JavaScript/Vue) code; Start the app with a live reload (android:devlive) and then attach a Chrome debugger to the app's webview.
Now you can select the desired debug configuration in VS Code and VS Code will automatically handle all the previous steps (web build, sync, native build, app launch).
The only remaining issue was a permission error during the global installation of the Ionic CLI. This issue needs to be resolved on your Linux host system (especially if in a Docker environment) to allow npm to properly install the global packages.
This library was built with google gemini
For the functions, don't get confused: I removed the Redmi file
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.