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

add vs code launch.json auto generation in waf configure #28839

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Huibean
Copy link
Member

@Huibean Huibean commented Dec 11, 2024

auto generate vscode launch.json for setup stm32 gdb or SITL lldb debug session in VSCODE
waf configure arg "--vs-launch", only active --debug
example command
./waf configure --board Pixhawk4 --debug --vs-launch
STM32 debug need https://github.com/Marus/cortex-debug and STLINK
image

./waf configure --board sitl --debug --vs-launch
image
image

@Huibean Huibean force-pushed the pr-add-vs-code-launch-auto-generation branch from 5ac119c to 4e98d9c Compare December 11, 2024 07:27
@Huibean Huibean force-pushed the pr-add-vs-code-launch-auto-generation branch from 6d4d3b6 to 1cf121c Compare December 11, 2024 14:51
openocd_target = 'stm32g4x.cfg'

with open(openocd_cfg_path, 'w+') as f:
f.write("source [find interface/stlink-v2.cfg]\n")
Copy link
Contributor

@joshanne joshanne Dec 12, 2024

Choose a reason for hiding this comment

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

I don't think this is right - pointing to the stlink-v2 config.

The most of the stlink*.cfg files point to the more common stlink.cfg - eg: https://github.com/openocd-org/openocd/blob/master/tcl/interface/stlink-v2.cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants