.vscode: debug: Change debug to attach to a prelaunched west debugserver#2
.vscode: debug: Change debug to attach to a prelaunched west debugserver#2nguyenmthien wants to merge 2 commits intoberiberikix:mainfrom
Conversation
Change debug paradigm to attach to a prelaunched west debugserver instance. task.json now have two new tasks: one run debugserver in silent mode in the terminal window, and one to close it. launch.json now call the debugserver window at start and then attach the debugger to it instead of launching the debugger directly. This unionize the debug calls to west debug only. Signed-off-by: Thien Nguyen <nguyenmthien@live.com>
|
This is to response to #1 |
|
Thanks for the contribution! Since this is more of a sample (and related to a talk,) Great enhancement! I'd prefer to keep the original launch configuration but add it as an additional example. I do like your idea of making a template repo that incorporate "best practices" and make that as a separate repo. WDYT? |
|
Can you add the changes to the |
I am down for creating a "best practices" template repo for Zephyr in VS Code :) |
Change debug paradigm to attach to a prelaunched
west debugserverinstance.task.jsonnow have two new tasks: one rundebugserverin silent mode in the terminal window, and one to close it.launch.jsonnow call the debugserver window at start and then attach the debugger to it instead of launching the debugger directly. This unionize the debug calls to west debug only.