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
Copy file name to clipboardexpand all lines: docs/docs/reference/developer_references/debugging.md
+16-11
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ You can log statements from Aztec.nr contracts that will show ups in the Sandbox
11
11
12
12
### Import `debug_log`
13
13
14
-
Import the [`debug_log` (GitHub link)](https://github.com/AztecProtocol/aztec-packages/blob/master/noir-projects/aztec-nr/aztec/src/oracle/debug_log.nr) dependency from Aztec oracles:
14
+
Import the `debug_log` dependency from Aztec oracles:
15
15
16
16
```rust
17
17
usedep::aztec::oracle::debug_log::{ debug_log };
@@ -47,16 +47,21 @@ debug_log_array(my_array);
47
47
48
48
### Start Sandbox in debug mode
49
49
50
-
Prepend the command to start the sandbox with `DEBUG=aztec:*` to log everything or `DEBUG=aztec:simulator:oracle` to only log your `debug_log()` statements.
51
-
52
-
```bash
53
-
# Using the docker-compose.yml setup
54
-
cd~/.aztec && DEBUG=aztec:* docker-compose up
55
-
```
56
-
57
-
Alternatively you can update the `DEBUG` environment variable in docker-compose.yml and start the sandbox normally.
50
+
Update the `DEBUG` environment variable in docker-compose.sandbox.yml to the following:
You can see all of our example contracts in the monorepo [here (GitHub link)](https://github.com/AztecProtocol/aztec-packages/tree/master/noir-projects/noir-contracts/contracts).
162
+
You can see all of our example contracts in the monorepo [here (GitHub link)](https://github.com/AztecProtocol/aztec-packages/tree/master/noir-projects/noir-contracts/contracts).
0 commit comments