Skip to content

Add docs for breakpoints #459

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

Merged
merged 4 commits into from
Jun 17, 2021

Conversation

vlad-perevezentsev
Copy link
Contributor

Add documentation for breakpoints

@vlad-perevezentsev vlad-perevezentsev added documentation Improvements or additions to documentation 3 - Waiting: reviewer debug Related to #149 labels Jun 17, 2021
@vlad-perevezentsev vlad-perevezentsev self-assigned this Jun 17, 2021
20 @dppy.kernel


``breakpoints with nested functions``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`` is backquotes: ``text`` for code samples. See https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#inline-markup.
You quotes not a code sample but a usual caption.

(gdb) run

Thread 2.2 hit Breakpoint 1, with SIMD lanes [0-7], __main__::data_parallel_sum () at simple_sum.py:20
20 i = dppy.get_global_id(0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the previous example line "20" was @dppy.kernel

``breakpoints with nested functions``
-------------------------------------

Consider ``numba-dppy`` kernel code. See folder ``numba_dppy/examples/debug/simple_dppy_func.py``:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why folder if it is a source file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Waiting: reviewer debug Related to #149 documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEBUG: Setting breakpoints with function names
3 participants