Debugging in VSCode #148
Replies: 3 comments 9 replies
-
To clarify: I can compile and run it fine through the Flatpak extension, but haven't been able to figure out debugging. |
Beta Was this translation helpful? Give feedback.
-
I never used debugging in the flatpak, so I don't know. For debugging a native meson build you can use the First you'd need to change these lines in echo -e "\n--- DEVEL PROFILE ---\n"
cargo build --manifest-path \
"$MESON_SOURCE_ROOT"/Cargo.toml && \
cp "$CARGO_TARGET_DIR"/debug/"$APP_BIN" "$OUTPUT" You'd need to configure, compile and install the meson project as outlined in Then you'd create a vscode
Then you should be able to debug inside vscode, set breakpoints, etc. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
@flxzt thanks! I was also running into some rust-analyzer version incompatibilities so it seems like native builds are definitely the way to go. That mostly works... Looks like I also have to install it, otherwise I get a panic:
And I think I'd also have to re-install after every build if I change the UI? It would be nice to override where it looks for that but |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I haven't worked on Flatpaks or used Meson before. Is it possible to debug Rnote (running as a Flatpak?) with VSCode? If you've done it, would you mind sharing your launch configuration? Alternatively, is there a different debugging setup you'd recommend? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions