Skip to content

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
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jun 2, 2025
* add vscode debugger for apps

* todo: need to disconnect when rebuilding

* update debugger

* add uri handler to remote launch the debugger

* attach

* dont panic

* fixed it - hung processes are not errors

* wip: android debugger

* clean it up a bit

* revert ios stdout/stderr

* wire up pid from ios

* use target family instead of target_arch

* fix android

* bring back softkill

* typo
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jul 23, 2025
* add vscode debugger for apps

* todo: need to disconnect when rebuilding

* update debugger

* add uri handler to remote launch the debugger

* attach

* dont panic

* fixed it - hung processes are not errors

* wip: android debugger

* clean it up a bit

* revert ios stdout/stderr

* wire up pid from ios

* use target family instead of target_arch

* fix android

* bring back softkill

* typo
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.

3 participants