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
Native shell debugger just like flutter for Vscode / android studio #68
Comments
There is a launcher configuration for vscode that you can use to attach to running process to get debugging and hot reload functionality. There's no such thing for android studio unfortunately because the intellij flutter plugin doesn't support attach on desktop. |
@knopp Any links or additional information will be appreciated. |
See this file: https://github.com/nativeshell/app_template/blob/main/.vscode/launch.json After you launch app with cargo run, you can launch the |
Note that this wouldn't work for me if my nativeshell project was not the root folder in VSCode. It would always fail to connect to the VM service. I resolved that by creating a VS Code workspace; this allowed creating the .vscode/launch.json inside the nativeshell project folder instead of at the root directory. |
Currently we have to run the app manually using
cargo run
, It would be interesting to see if there will be a debugger for this.This will make this package developer friendly and also in future when you add hot restart or reload, then we don't have to use the terminal instead use the debugger in our IDE(vscode is more general then android-studio for desktop).
The text was updated successfully, but these errors were encountered: