diff --git a/.run/core.run.xml b/.run/core.run.xml
new file mode 100644
index 000000000..e37d859e7
--- /dev/null
+++ b/.run/core.run.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/setup.md b/docs/setup.md
index bf2ad0e52..9d311a36f 100644
--- a/docs/setup.md
+++ b/docs/setup.md
@@ -147,7 +147,7 @@ Also ensure you have firefox installed
bundle exec rake db:seed
```
-5. For Ordinance Survey related functionality, such as using the UPRN, you will need to set OS_DATA_KEY in your .env file. This key is shared across the team and can be found in AWS Secrets Manager.
+5. For Ordinance Survey related functionality, such as using the UPRN, you will need to set `OS_DATA_KEY` in your .env file. This key is shared across the team and can be found in AWS Secrets Manager.
6. For email functionality, you will need a GOV.UK Notify API key, which is individual to you. Ask an existing team member to invite you to the "CORE Helpdesk" Notify service. Once invited, sign in and go to "API integration" to generate an API key, and set this as `GOVUK_NOTIFY_API_KEY` in your .env file.
## Running Locally
@@ -192,17 +192,24 @@ You can also insert a new user row using SQL, but you will need to generate a co
### Debugging
-You can use `binding.pry` to pause the execution of the code at that line and open an interactive console.
-More details on Pry are available at https://pry.github.io/ .
-
-RubyMine also offers built-in debugger functionality.
-Add a Rails run configuration for the project to RubyMine (the default setup should just work) and you can choose between running the project using the play icon to run it normally or using the bug icon to run with the debugger attached.
-You can also run tests with the debugger attached from the spec files.
-When running any code in RubyMine with the debugger attached, click the line numbers to place a breakpoint.
-Right click a breakpoint for advanced options like setting conditions for the breakpoint to trigger.
-When the breakpoint is hit, code execution pauses and you can evaluate expressions, step through the code, and see the values of variables in the current scope.
-You can "watch" important expressions to see their values change as you step through the code.
-More details on debugging in RubyMine can be found at https://www.jetbrains.com/help/ruby/debugging-code.html .
+Add the line `binding.pry` to the code to pause the execution of the code at that line and open a powerful interactive console for debugging.
+More details on Pry are available at .
+
+RubyMine also offers built-in debugging functionality, with the ability to manage breakpoints in the IDE.
+To use this:
+- To run the app with debugger: select the "core" Rails run configuration for the project in the top right, then click the bug icon to run with the debugger attached
+- To run tests with debugger: use the arrows in the margin of spec files beside a section or an individual test
+- To run anything else with debugger: go to `Run > Edit Configurations` and add the task you want to debug - options include Rails, Rake, Rspec, Ruby
+
+Click a line number to place a breakpoint. Right click a breakpoint for advanced options on when to trigger and what to log. You can view all breakpoints, toggle them and configure them from the `View Breakpoints...` menu.
+
+When the running code reaches a breakpoint, the debugger pauses execution and the debug panel can be used to:
+- View the call stack and the values of variables in the current scope
+- Evaluate and watch expressions
+- Step through the code line by line
+- Mute all breakpoints, resume, restart, etc
+
+More details on debugging in RubyMine can be found at .
### Tests