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

Debugger does not display value in native unit testing project #4553

Closed
dtila opened this issue Feb 14, 2023 · 3 comments
Closed

Debugger does not display value in native unit testing project #4553

dtila opened this issue Feb 14, 2023 · 3 comments

Comments

@dtila
Copy link

dtila commented Feb 14, 2023

Given a small PlatformIO project referencing ArduinoMock, the debugger does not display the value given by the mock.

image

The bug can be reproduced using this project: https://github.com/dtila/platfornio_unittesting


Configuration

Operating system:
Windows 10

PlatformIO Version (platformio --version):
PlatformIO Core, version 6.1.6

Steps to Reproduce

  1. Checkout the project was given the link above
  2. Hit a breakpoint in the unit test

You should see debugger displayed value is not the one returned by the mock.

However the mock works correctly, since running the tests, they pass successfully:
Building... Testing... test\test_native_sut\SUTTests.cpp:54: TestMock [PASSED]

@ivankravets
Copy link
Member

@valeros , could you reproduce this issue? I can't make my gdb work on the latest macOS due to the system error warning: unhandled dyld version (17).

@valeros
Copy link
Member

valeros commented Apr 16, 2023

Strange, but I cannot reproduce:

image

@ivankravets
Copy link
Member

Thanks, @valeros!

@ivankravets ivankravets removed this from the 6.1.7 milestone Apr 17, 2023
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

3 participants