code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

Hardware breakpoint support for embedded development

Open HendrikHuebner opened this issue 1 year ago • 1 comments

Hello, I was wondering if there is an option to create hardware breakpoints in this extension. I'm debugging a kernel, therefore software breakpoints do not work for me.

Ideally I would like an option that creates hardware breakpoints (gdb "hbreak" instead of "break") when a breakpoint is set in the UI (the red circles).

Is there support for this already? Right now the only solution I have come up with is to use the stopAtConnect option and then set them manually in the CLI.

HendrikHuebner avatar May 18 '24 12:05 HendrikHuebner

In theory we could have a setting for that, defaulting to "no". "yes" would be easy to add, and nice would be "default" (try, if not possible, then fall back to software breakpoint).

... but that reminds me of

 set breakpoint auto-hw

What is the value of this setting in your environment and does changing it help in any way?

GitMensch avatar May 19 '24 06:05 GitMensch