You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: the `-m:1` is important as it restricts MSBuild to 1 node.
61
+
62
+
Once MSBuild starts it will print the following
63
+
64
+
```dotnetcli
65
+
Waiting for debugger to attach (dotnet PID xxxx). Press enter to continue...
66
+
```
67
+
68
+
You need to copy the PID value so we can use this in the IDE. For Visual Studio you can use the `Attach to Process` menu option, while you have the Xamarin.Android.sln solution open. For VSCode open the workspace then use the `Attach to Process` Run and Debug option. You will be prompted for the PID and it will then connect.
69
+
70
+
Once connected go back to your command prompt and press ENTER so that the MSBuild process can continue.
71
+
72
+
You will be able to set breakpoints in Tasks (but not Targets) and step through code from this point on.
73
+
74
+
If you want to test in-tree using the same the `build-sample-under-dotnet` command will ask you if you want to debug MSBuild tasks and fill in the `MSBUILDDEBUGONSTART` for you. The PID text will appear in the `Terminal` window in VSCode. In addition the `run-sample-under-dotnet` command will ask the same.
75
+
8
76
## Naming
9
77
10
78
MSBuild targets, properties, and item groups are prefixed with an
0 commit comments