-
-
Notifications
You must be signed in to change notification settings - Fork 431
Alpha 0.1.1 Debugging: breakpoints on local libraries are not considered #120
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
Comments
I think this must be fixed in the CLI. I created an issue here: |
Thank you. Waiting for Alpha 0.06 now! |
See #87 |
@rei-vilo |
@ubidefeo Thank you, great to know! I know software development isn't easy, especially when targeting so many boards... |
@rei-vilo Will close it because I cannot reproduce it anymore, but feel free to reopen if you're still affected. |
Seems like @per1234 can still reproduce it, hence reopening |
Sure, I plan to try the new release with the same project. |
@ubidefeo After searching a bit for the procedure, I finally found it here at https://github.com/arduino/arduino-pro-ide/issues/366#issuecomment-775734448, and I ran the very same example. Unfortunately, only the breakpoint on the main sketch is considered. The breakpoint on the library is listed, but not active. On the example, the debugger only stops at breakpoint 1. Breakpoint 2 is ignored. |
That's correct. When I follow rei-vilo's instructions from https://github.com/arduino/arduino-pro-ide/issues/217#issue-572776322, the breakpoint in LocalLibrary.cpp is grayed out in the debugger's "Breakpoints" section, and is an empty circle rather than the expected red dot in the sketch tab. The breakpoint's tooltip says this:
If I add a breakpoint to the .ino file, it works perfectly. |
@rsora and I also got to that conclusion and opened an internal task which @cmaglie and @kittaakos are going to look into. |
@ubidefeo Nice to know it is a "good bug" :-) |
@rei-vilo Please check the beta.4 version, your issue should be solved (the fix was done here arduino/arduino-cli#1224) Feel free to close the issue if you don't experience the problem anymore. Happy coding! |
@rsora Thank you for the update. I’ll give a try when I return home. I am a bit lost between this alpha 0.1.1 and the beta 2.0. Are they the same project? How do they compare? |
@rei-vilo Please try IDE 2.0 Beta 4 like suggested by @rsora and let us know. |
Sorry for the late answer. Simple breakpoint works now on libraries. However, conditional breakpoint doesn't seem to work yet. I am opening a new ticket at #268. |
Describe the bug
Breakpoints defined on local libraries are not considered.
To Reproduce
Very basic example with 3 files:
Blink.ino
,LocalLibrary.h
,LocalLibrary.cpp
Two breakpoints defined: one in
Blink.ino
, another inLocalLibrary.cpp
Expected behavior
Breakpoints defined on local library
LocalLibrary.cpp
should be considered.Actually, all the files are duplicated under a temporary folder,
/private/var/folders/wn/n7qqb8ss0k3bvpqwfcdwp_7r0000gn/T/arduino-sketch-7CD787D3756B222A4A3572C34ED19F79/sketch/
The breakpoint on
Blink.ino
is kept, but not the breakpoint onLocalLibrary.cpp
.Workaround
Launch the debugging session.
Define the breakpoint on the local library again.
Screenshots
Desktop (please complete the following information):
Code
The text was updated successfully, but these errors were encountered: