Skip to content

Commit

Permalink
chore: Update comments in launch.json (Azure#4303)
Browse files Browse the repository at this point in the history
I was talking with Marina today about my workflow for debugging
changes in `azd`. I use the "Debug azd cli" launch configuration for
most of my debugging and end up modifying `launch.json` to set the
`cwd` and other parameters for the profile for the specific end to end
I want to debug.  There are some `git` tricks that you can play to
ignore modifications to this file (so you don't have to worry about
checking them in).  I had documented them in one place but not the
other (since I typically run VS Code from within the `cli/azd` sub
folder, to have a smaller workspace) and didn't document how you undo
this behavior.

This patch updates the comments to show how to turn this off, and adds
them to our root `launch.json` as well.
  • Loading branch information
ellismg authored Sep 10, 2024
1 parent 9cfa813 commit ec85b9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

// You can run `git update-index --skip-worktree .vscode/launch.json` to have git
// ignore changes to this file so you don't need to worry about commiting your edits. If you ever
// need to merge this file afterwards, you'll need to run `git update-index --no-skip-worktree .vscode/launch.json`
// to ensure git tracks changes to this file again.
"version": "0.2.0",
"configurations": [
// If you set `AZD_DEBUG=true` in your environment, `azd` will pause early in start up and allow you to attach
Expand Down
6 changes: 4 additions & 2 deletions cli/azd/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
// You can run `git update-index --skip-worktree .vscode/launch.json to have git
// ignore changes to this file so you don't need to worry about commiting your edits.
// You can run `git update-index --skip-worktree .vscode/launch.json` to have git
// ignore changes to this file so you don't need to worry about commiting your edits. If you ever
// need to merge this file afterwards, you'll need to run `git update-index --no-skip-worktree .vscode/launch.json`
// to ensure git tracks changes to this file again.
"version": "0.2.0",
"configurations": [
// This will launch azd (starting from main.go), under the debugger.
Expand Down

0 comments on commit ec85b9c

Please sign in to comment.