https://github.com/encodeous/lacsdbg
A more user-friendly debugging toolkit for developing the Lacs programming language in the course CS 241e
https://github.com/encodeous/lacsdbg
Last synced: 6 months ago
JSON representation
A more user-friendly debugging toolkit for developing the Lacs programming language in the course CS 241e
- Host: GitHub
- URL: https://github.com/encodeous/lacsdbg
- Owner: encodeous
- Created: 2024-11-02T19:48:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T16:25:14.000Z (about 1 year ago)
- Last Synced: 2024-11-26T17:28:58.470Z (about 1 year ago)
- Language: Scala
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LacsDbg
A more user-friendly debugging toolkit for developing the Lacs programming language in the course CS 241e
Features:
- Line-by-line debugging with Breakpoints
- Debugging Code Hider (reduce clutter when debugging)
- Memory & Register Printing
- Disassembly (feature from the original debugger)
- Extendable! You can add your own functionality
*The functionality to print stack frames is not included by default, this is for you to implement in A5 and A6*
## `Setup`
To setup LacsDbg, you need to modify the handout code:
ProgramRepresentation.scala:
```diff
-sealed abstract class Code
+abstract class Code
```
Appropriate changes should be made to your code to call `LacsDbg.debug(initialState, mtl.debugTable)` and `LacsDbg.toDebugMachineCode(code)`
Copy the `LacsDbg.sc` source file to the `src/cs241e/assignments` folder (where the other source files are located)