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

Test fails on Debug configuration #41

Closed
LilithSilver opened this issue Jun 2, 2022 · 4 comments · Fixed by #42
Closed

Test fails on Debug configuration #41

LilithSilver opened this issue Jun 2, 2022 · 4 comments · Fixed by #42

Comments

@LilithSilver
Copy link
Contributor

When ctest -c Debug is run after the project is built with cmake --build . --config Debug , I get the following error:

image

Program: inkcpp_test.exe
File: include\xstring
Line: 1942
Expression: cannot dereference string iterator because it is out of range (e.g. an end iterator).

I'd look further into it, but I can't seem to figure out how to run tests from Visual Studio and step through the code.

Note that the tests work fine under the Release configuration.

@JBenda
Copy link
Owner

JBenda commented Jun 2, 2022

Interesting, I can't remember having the same problem with UNIX ...
If you have time to spare consider looking deeper :)

@LilithSilver
Copy link
Contributor Author

I could; I just can't seem to get the test suite running in VS on Windows (or anything else that would let me debug). I can get it to build and run as part of the build through VS, but I can't get it debugging. Do you know how?

@JBenda
Copy link
Owner

JBenda commented Jun 7, 2022

May take a look at #42, this should resolve the problem.
Thank you for point us to that. It's a more clean now. Please let me know if it also works for you.

To debug inkcpp_test in VS you start the inkcpp.sln project, then right-click on the inkcpp_test subproject and selecting it as set as start project. Then you can run it with Debugger attached with the green arrow at the top. Hope that helps

@JBenda JBenda closed this as completed in #42 Jun 7, 2022
@LilithSilver
Copy link
Contributor Author

May take a look at #42, this should resolve the problem. Thank you for point us to that. It's a more clean now. Please let me know if it also works for you.

To debug inkcpp_test in VS you start the inkcpp.sln project, then right-click on the inkcpp_test subproject and selecting it as set as start project. Then you can run it with Debugger attached with the green arrow at the top. Hope that helps

Works for me! Also the set as startup project is what I was missing; it works now.

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants