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

Debug - Support setting breakpoints on different lines in code. #534

Closed
Tracked by #485
ghaith opened this issue Aug 8, 2022 · 1 comment · Fixed by #656
Closed
Tracked by #485

Debug - Support setting breakpoints on different lines in code. #534

ghaith opened this issue Aug 8, 2022 · 1 comment · Fixed by #656
Labels
small-part Only part of a bigger feature (is tracked)

Comments

@ghaith
Copy link
Collaborator

ghaith commented Aug 8, 2022

On the Rusty CLI : Add a flag to build build for "Debug", this activates the debug functionally
If buildi for debug, add appropriate LLVM/Dwarf information to the generated code so that a debugger can know which lines it can stop on.

@ghaith ghaith mentioned this issue Aug 8, 2022
5 tasks
@ghaith ghaith added this to the Debugging Support milestone Aug 8, 2022
@ghaith ghaith changed the title Support setting breakpoints on different lines in code. Debug - Support setting breakpoints on different lines in code. Aug 8, 2022
@riederm
Copy link
Collaborator

riederm commented Aug 8, 2022

have you already decided on how to integrate the debug code into codegen? maybe we can discuss this in a call?

@riederm riederm added the small-part Only part of a bigger feature (is tracked) label Nov 16, 2022
99NIMI added a commit that referenced this issue Nov 17, 2022
@99NIMI 99NIMI linked a pull request Nov 17, 2022 that will close this issue
ghaith added a commit that referenced this issue Dec 7, 2022
* #534 debug locations

* Add tests, add debug only on calls and assignments

* Add support for debug variables

Local variables and parameters are now supported

* Adjust line information for function start

* Fix line number and variables for POUs

Co-authored-by: Ghaith Hachem <ghaith.hachem@gmail.com>
Co-authored-by: Ghaith Hachem <ghaith.hachem@bachmann.info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small-part Only part of a bigger feature (is tracked)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants