Is it possible to hook a step-scripted command in to the default step action (trying to mimic Just My Code in C++)? #1030
Unanswered
alan-davies-se
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Maybe try stop hooks? ("target stop-hook add") Python-based stop hooks can return a "should-stop" flag. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'll try and give some context as to why I want to do this.
I am trying to obtain a
Just My Code
experience. I have achieved this by disabling the defaultstep-avoid-regexp
(to allow stepping in to STL) then creating a step script which continues to step if the function name matches'(^[^ ]+ (const[&\*]?)? std::)|^std::'
. When I hit a break point (lets say a call to std::function's operator()) I then run my step script and I end up in my user code (please let me know if anyone would like more details).Ideally I would like my step script to run via vscode's
step-in-to
button and the F11 hot key, does anyone have any ideas on how to achieve this?Beta Was this translation helpful? Give feedback.
All reactions