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

Allow GDB for native environment tests #1262

Closed
twhiston opened this issue Dec 28, 2017 · 6 comments
Closed

Allow GDB for native environment tests #1262

twhiston opened this issue Dec 28, 2017 · 6 comments

Comments

@twhiston
Copy link

It would be extremely useful if gdb could be run on native TEST targets so we could more effectively debug during the testing cycle, it seems like most generic code would benefit from this as it would allow you to do a lot of work before even getting near a microprocessor.

@ivankravets
Copy link
Member

Do you mean this #980 ?

@twhiston
Copy link
Author

yeah that is part of it, but i would like to specifically target the unit tests, and not the main(or setup/loop).

@ivankravets
Copy link
Member

You can do that with native dev/platform. See example https://github.com/platformio/platformio-examples/tree/develop/unit-testing/calculator

@twhiston
Copy link
Author

I had actually seen that example and tried something similar but could not get any breakpoints to halt execution.

@ivankravets
Copy link
Member

This feature request consists of

Am I right? If yes, please close it and subscribe to issues mentioned above.

@ivankravets
Copy link
Member

Duplicate of #948
Duplicate of #980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants