From 40a89ddcc4ec8c57faa1c2976ef5c020fcd3c9c3 Mon Sep 17 00:00:00 2001 From: Phylroy Lopez Date: Wed, 25 Sep 2024 09:24:10 -0400 Subject: [PATCH 1/4] Update vscode.md typo in docker command --- docs/vscode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/vscode.md b/docs/vscode.md index 61c65a19d2..543149f652 100644 --- a/docs/vscode.md +++ b/docs/vscode.md @@ -12,7 +12,7 @@ These are instructions on how to conduct development in the openstudio-standards Ensure that docker desktop is running on your system. You should see it present in your windows task tray. Then run the following command. ``` -docker hello-world +docker run hello-world ``` You should see the following output. From 702ab4edfe07881b7a95a2a34a2171d839782b6a Mon Sep 17 00:00:00 2001 From: Phylroy Lopez Date: Wed, 25 Sep 2024 12:00:04 -0400 Subject: [PATCH 2/4] Update vscode.md Added instructions for debugger --- docs/vscode.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/vscode.md b/docs/vscode.md index 543149f652..671dcf9d2f 100644 --- a/docs/vscode.md +++ b/docs/vscode.md @@ -101,9 +101,16 @@ Depending on the speed of your computer this may take a few hours. Best practice You can use the CTRL+C, CTRL-V to cut as paste to/from your host(windows) machine. - - - +## Debugging using integrated VSCode ruby debugger. +You have to make some modification to the following to /workspaces/openstudio-standards/openstudio-standards.gemspec +```ruby +spec.add_development_dependency 'debug' +``` +update your installed gems by running this command in the terminal window +``` +bundle install --path vendor/bundle +``` +To debug, open the file in vscode editor window.. then hit F5. Ensure the file that appears on the top is what you want to run and hit Enter. From a24f69397d8c48c0439884ea047109a26a4da006 Mon Sep 17 00:00:00 2001 From: Phylroy Lopez Date: Wed, 25 Sep 2024 12:01:20 -0400 Subject: [PATCH 3/4] Update vscode.md fixed typo. --- docs/vscode.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/vscode.md b/docs/vscode.md index 671dcf9d2f..1e97dcbe50 100644 --- a/docs/vscode.md +++ b/docs/vscode.md @@ -102,11 +102,11 @@ You can use the CTRL+C, CTRL-V to cut as paste to/from your host(windows) machin ## Debugging using integrated VSCode ruby debugger. -You have to make some modification to the following to /workspaces/openstudio-standards/openstudio-standards.gemspec +You have to make a modification to the following to /workspaces/openstudio-standards/openstudio-standards.gemspec by adding the following dependancy. ```ruby spec.add_development_dependency 'debug' ``` -update your installed gems by running this command in the terminal window +Update your installed gems by running this command in the terminal window ``` bundle install --path vendor/bundle ``` From 11197fa12f44906c022b14ab417f77402e4a4a60 Mon Sep 17 00:00:00 2001 From: Phylroy Lopez Date: Wed, 25 Sep 2024 12:14:29 -0400 Subject: [PATCH 4/4] Update vscode.md Added tip on increasing terminal history. --- docs/vscode.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/vscode.md b/docs/vscode.md index 1e97dcbe50..1c311c6a3f 100644 --- a/docs/vscode.md +++ b/docs/vscode.md @@ -101,7 +101,7 @@ Depending on the speed of your computer this may take a few hours. Best practice You can use the CTRL+C, CTRL-V to cut as paste to/from your host(windows) machine. -## Debugging using integrated VSCode ruby debugger. +### Debugging using integrated VSCode ruby debugger. You have to make a modification to the following to /workspaces/openstudio-standards/openstudio-standards.gemspec by adding the following dependancy. ```ruby spec.add_development_dependency 'debug' @@ -112,6 +112,16 @@ bundle install --path vendor/bundle ``` To debug, open the file in vscode editor window.. then hit F5. Ensure the file that appears on the top is what you want to run and hit Enter. +### Increase Terminal History Buffer +Have long output you want to be able to scroll back and see? Very useful for long output of running tests. + +1. Open preferences + * Mac: Code → Preferences → Settings. + * Windows: File → preferences → Settings. +2. Search for "scrollback". +3. Overwrite "terminal.integrated.scrollback": 1000, with whatever you want, e.g. 9999. + +Note: You will have to restart vscode for this to take effect.