Skip to content

Commit

Permalink
Merge pull request #1817 from NREL/nrcan
Browse files Browse the repository at this point in the history
Including updates from nrcan branch
  • Loading branch information
ckirney authored Sep 26, 2024
2 parents ef3711c + 11197fa commit 36d66cd
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions docs/vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -101,10 +101,27 @@ 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 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
```
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.



Expand Down

0 comments on commit 36d66cd

Please sign in to comment.