Skip to content
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

Compatibility with Debug: gdbServerPort ignored #22

Open
chconil opened this issue Sep 4, 2024 · 3 comments
Open

Compatibility with Debug: gdbServerPort ignored #22

chconil opened this issue Sep 4, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@chconil
Copy link

chconil commented Sep 4, 2024

Hi there !

I'm a new user to wokwi-cli and so far it has proven to be extremely useful ! Thanks for that :)
One function I've been missing is the ability to connect a debugger to it.

It could be used to :

  • Run an automated debug launch (build target, run wokwi-cli, run debugger)
  • Run complex CI scenarios where we could check complex usecases, by combining wokwi-cli to gdb scripts.

Is there any plan to get this working?
Thanks!
Christophe

@urish urish added the enhancement New feature or request label Sep 8, 2024
@urish
Copy link
Contributor

urish commented Sep 8, 2024

Thanks for the feedback!

Yes, we're planning to add this functionality.

Would you mind sharing more about the complex CI scenarios use case? Do you have some specific examples in mind?

Thanks!

@chconil
Copy link
Author

chconil commented Sep 8, 2024

That's great news !! :-) The idea behind having GDB run in CI was to develop an end to end automated testing.

Right now we have an app that sends messages to multiple esp32 targets over an MQTT server. I'd set a breakpoint in wokwi, run the MQTT call, break, check variable content, and continue with further tests. But looking a bit further I just saw that's what scenarios are about, and this could actually be enough!

BTW, while the VSCode plugin is useful, I'd put my money in having an offline (/enterprise) version of the CLI. ;-)

image

@urish
Copy link
Contributor

urish commented Sep 12, 2024

Thanks for explaining your use case!

But looking a bit further I just saw that's what scenarios are about, and this could actually be enough!

Any luck with getting them to work for the MQTT use case so far?

BTW, while the VSCode plugin is useful, I'd put my money in having an offline (/enterprise) version of the CLI. ;-)

We do have an offline version of the CI server (that's what the CLI connects to), available as a docker container image. Would that be interesting for you?

@urish urish self-assigned this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants