Skip to content

Commit

Permalink
Update codal.dev.json
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Apr 5, 2023
1 parent 9501569 commit 8245fd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ You will find a simple main.cpp in the `source` folder which you can edit. CODAL

The `samples` folder contains a number of simple sample programs that utilise you may find useful.

## Developer codal.json

There is an example `coda.dev.json` file which enables "developer builds" (clones dependencies from the latest commits, instead of the commits locked in the `codal-microbit-v2` tag), and adds extra CODAL flags that enable debug data to be printed to serial.
To use it, simply copy the extra additional json entries into your `codal.json` file, or you can replace the file completely (`mv coda.dev.json codal.json`).

# Debugging
If you are using Visual Studio Code, there is a working debugging environment already set up for you, allowing you to set breakpoints and observe the micro:bit's memory. To get it working, follow these steps:

Expand Down
1 change: 1 addition & 0 deletions codal.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"config":{
"DEVICE_DMESG": 1,
"DEVICE_DMESG_BUFFER_SIZE": 1024,
"DMESG_SERIAL_DEBUG": 1,
"CODAL_DEBUG": 1,
"MICROBIT_BLE_ENABLED" : 0,
Expand Down

0 comments on commit 8245fd4

Please sign in to comment.