How do you debug your code?
Is is possible to use breakpoints somehow?
I sit possible to log stuff in the console? like in javascript console.log("hello there!");
I see the gendev emulator has a features called 'messages' and 'watches', perhaps that has something to do with this?
Im using viusual studio code btw.
How to debug my code?
Moderator: Stef
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: How to debug my code?
You can use the KLog_xxx method to generate output message in the message Dialog of Gens KMod, really useful for debugging
Re: How to debug my code?
Regen has a debugger, and is useful for following current execution.
What I use as a break point is:
It’s ASM code, but you can build a macro around it. Basically it blocks the cpu at this point, but you can bypass it with Regen. If this code isn’t on an exception exceptions can be executed do.
What I use as a break point is:
Code: Select all
0: jra 0b
HELP. Spanish TVs are brain washing people to be hostile to me.
Re: How to debug my code?
Thank you! I will try this out when I get home tonight
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: How to debug my code?
I do the same technique using Gens (as i'm familiar with its debugger) using 'N' key to pass to next instruction word.