Skip to content

debugger support for dx #3814

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

Merged
merged 19 commits into from
May 24, 2025
Merged

debugger support for dx #3814

merged 19 commits into from
May 24, 2025

Conversation

jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Mar 1, 2025

Powered by the same tooling from http://github.com/jkelleyrtp/cargo-debugger

Lets you open the current app in vscode's debugger by pressing d.

todo:

  • web (requires vscode extension)
  • desktop
  • server (shift + d)
  • ios
  • android

We should allow configuration of the debugger at some point since people seem to use gdb, dap, etc, but for now this works well with our vscode-oriented workflow.

debugger-dx.mp4

@mcmah309
Copy link
Contributor

mcmah309 commented Mar 4, 2025

Awesome! As a side, what tool did you use to record that video? 😄

@jkelleyrtp jkelleyrtp added the cli Related to the dioxus-cli program label Apr 9, 2025
@mcmah309
Copy link
Contributor

mcmah309 commented May 16, 2025

Does this work inside a dev container? - jkelleyrtp/cargo-debugger#2 . Might be worth testing with https://github.com/DioxusLabs/dioxus/tree/main/.devcontainer if not already done

@jkelleyrtp jkelleyrtp marked this pull request as ready for review May 18, 2025 10:03
@jkelleyrtp jkelleyrtp requested a review from a team as a code owner May 18, 2025 10:03
@jkelleyrtp
Copy link
Member Author

Does this work inside a dev container? - jkelleyrtp/cargo-debugger#2 . Might be worth testing with https://github.com/DioxusLabs/dioxus/tree/main/.devcontainer if not already done

Unfortunately no, since we call code --open-url "link" to get code-lldb to open the debugger.

To add web support, I had to add an extra handler to our vscode extension, so in theory, the two could work together, but I wouldn't even know where to start to get it working.

@mcmah309
Copy link
Contributor

mcmah309 commented May 19, 2025

Unfortunately no, since we call code --open-url "link" to get code-lldb to open the debugger.

That's unfortunate, we do all our coding inside dev containers.

To add web support, I had to add an extra handler to our vscode extension, so in theory, the two could work together, but I wouldn't even know where to start to get it working.

I've never made a vscode extension myself, so I don't know either. But this would definitely be appreciated if you go this route.

@jkelleyrtp jkelleyrtp merged commit b2bd1f4 into main May 24, 2025
16 of 17 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/debugger-support branch May 24, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants