Debugging

Debugging is a valuable tool. It currently is only possible in conjunction with Vice 2.3 or 2.4.




Prerequisites
You need to have Vice configured as emulator. Debugging is only possible with Vice 2.3 or 2.4.

Make sure that in the tool settings the "Debug" arguments are set to "-remotemonitor -initbreak 0x$(DebugStartAddressHex)"


Start debugging
To start the debugger either:


Breakpoints
C64 Studio supports exec, store and load type breakpoints. Clicking on the margin of a source file will set exec breakpoints. To set store/load breakpoints use the "Breakpoints" tool window.

Debug Registers

The "Debug Registers" view shows the current register and CPU flag values.




Values that changed during the last step are marked red.


Registers
X, Y and A show the current value of the register, hex on the left, decimal on the right side


LIN
LIN shows the current line of the raster ray


CYC
CYC shows the current cycle on the current line of the raster ray


PC
PC shows the current location the processor is pointing to. Hex on the left, decimal on the right side


SP
SP shows the current stack pointer. Hex on the left, decimal on the right side


Status
Status displays the various flags of the CPU. NV-BDIZC from left to right are Negative flag, Overflow flag, Expansion Bit (unused), Break flag, Decimal flag, Interrupt flag, Zero flag and Carry flag.


Debug Memory

The "Debug Memory" view shows the current view the CPU has on RAM/ROM.




Values that changed during the last step are marked red.