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
VSCode configs for our repo are tricky enough that people would benefit
from having them checked into the repo. Some people are strongly opposed
to having them checked in at the default location though, for what I
assume are the following reasons:
- There's no good way to have user-specific, workspace-specific
preferences, so one set of `.vscode` files would apply to everyone.
- If you already had workspace-specific VSCode preferences, the new
files would collide.
- Not everyone uses VSCode, so if we start adding `.vscode` files,
we should also start adding `.idea` files and others, and where will
it end, and who's going to keep them consistent?
As a compromise, adding a script which will copy a base VSCode config
into place. You can choose the run the script if you want it, and you
can choose not to run it if you don't. Everybody happy, right?
If necessary, we'll be able to extend this in the future with custom
per-user configs, but for now let's start with something simple.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@@ -910,6 +911,24 @@ To debug your CDK application along with the CDK repository,
910
911
6. The debug view, should now have a launch configuration called 'Debug hello-cdk' and launching that will start the debugger.
911
912
7. Any time you modify the CDK app or any of the CDK modules, they need to be re-built and depending on the change the `link-all.sh` script from step#2, may need to be re-run. Only then, would VS code recognize the change and potentially the breakpoint.
912
913
914
+
### Run a CDK unit test in the debugger
915
+
916
+
If you want to run the VSCode debugger on unit tests of the CDK project
917
+
itself, do the following:
918
+
919
+
1. Set a breakpoint inside your unit test.
920
+
2. In your terminal, depending on the type of test, run either:
0 commit comments