Skip to content

Commit

Permalink
Add support debug into child process launched by avatar launcher
Browse files Browse the repository at this point in the history
Summary: So that end users don't have to rely on alternative ways such as child process debug extension to debug such targets.

Differential Revision: D67354352

fbshipit-source-id: e45f7deefc3ead2659d1cf1f650bec4109572b8d
  • Loading branch information
autozimu authored and facebook-github-bot committed Dec 18, 2024
1 parent 04c932f commit b6848d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ide_integrations/visual_studio/get_vs_settings.bxl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ def _get_debug_settings(target: bxl.ConfiguredTargetNode, attrs: dict, attrs_laz
elif attrs["buck_type"] == "cxx_test" and "BUCK_BASE_BINARY" in attrs["env"]:
test_binary_path = attrs["env"]["BUCK_BASE_BINARY"][0]
debug_settings[DEBUG_CMD] = test_binary_path
elif attrs["buck_type"] == "cxx_test" and "AVATAR_LAUNCHER_TARGET" in attrs["env"]:
# Replicate Avatar launcher script https://fburl.com/code/wylf2zjx
test_binary_path = attrs["env"]["AVATAR_LAUNCHER_TARGET"][0]
debug_settings[DEBUG_CMD] = test_binary_path
debug_settings[DEBUG_PWD] = dirname(test_binary_path, separator = "\\")

return debug_settings

Expand Down

0 comments on commit b6848d8

Please sign in to comment.