Author Topic: Axe Debug  (Read 5484 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Axe Debug
« on: September 18, 2010, 06:47:18 pm »
Hello,
I'm working on a debugging library that will make it much easier to debug Axe code.  It works as an interrupt, and when you hold down Y= and Graph, it will break (which means that it will stop executing your program and temporarily execute its own code instead, not that it crashes your calc :P).  You can browse a menu of available options and things to do while you are in the breakpoint.  So far, the following is implemented:
-Logging
   -You can maintain a log that saves to a program file, and view it from the debugger or from TIOS
-Variable Editing
   -While debugging, you can break and view/edit the variables
-Hex Editor
   -You can view RAM and ROM, and modify RAM
Planned:
-Code View
   -An interactive view that will let you navigate the code and do some sweet stuff, like Visual Studio

_player1537

  • Guest
Re: Axe Debug
« Reply #1 on: September 18, 2010, 06:48:35 pm »
Sounds cool ^^  Can't wait to try it, although I might not use it regularly

SirCmpwn

  • Guest
Re: Axe Debug
« Reply #2 on: September 18, 2010, 06:50:12 pm »
Yeah, the whole interrupt thing is a bit of a downer, but I will probably make it so you can manually call all the features without using the interrupt.

_player1537

  • Guest
Re: Axe Debug
« Reply #3 on: September 18, 2010, 06:51:39 pm »
What specifically will the code view look like?

SirCmpwn

  • Guest
Re: Axe Debug
« Reply #4 on: September 18, 2010, 06:55:00 pm »
It will basically show the program code, uneditable, and will figure out the currently executing line, take you there, and let you browse the code, check variables, etc.

Offline matthias1992

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 408
  • Rating: +33/-5
    • View Profile
Re: Axe Debug
« Reply #5 on: September 18, 2010, 06:55:48 pm »
cool project Sir! Altough I hope you don't overwork yourself with all this projects running in parallel, I have the same 'problem'.
MASM xxxxxxxxxx aborted | SADce ====:::::: 40% -Halted until further notice| XAOS =====::::: 50% -Units done| SKYBOX2D engine ========== 100% -Pre-alpha done. Need to  document it and extend |

~Those who dream by day are cognizant of much more than those who dream by night only. -Sir Edgar Allen Poe-

_player1537

  • Guest
Re: Axe Debug
« Reply #6 on: September 18, 2010, 06:56:25 pm »
:O  That sounds awesome!  I thought it would just indent the code of a certain program :P  Can't wait to see your elegent solution to finding where in the code you are

SirCmpwn

  • Guest
Re: Axe Debug
« Reply #7 on: September 18, 2010, 06:56:32 pm »
Well, its mostly because it would be useful for my current projects :)
player, code counting.
« Last Edit: September 18, 2010, 07:00:32 pm by SirCmpwn »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Debug
« Reply #8 on: September 18, 2010, 07:12:23 pm »
That sounds awesome!  So basically you would just include the file at the beginning of your program and it gets debugging capabilities?  Sounds awesome :D Although how are you going to manage it without Interrupt capabilities?

SirCmpwn

  • Guest
Re: Axe Debug
« Reply #9 on: September 18, 2010, 07:27:43 pm »
That's right, all you do is include it.  Also, without the interrupt turned on, you can always do sub(BP) (BP = Breakpoint) to manually break the code.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Debug
« Reply #10 on: September 18, 2010, 07:35:46 pm »
How on earth are you going to manage to figure out where execution is?

SirCmpwn

  • Guest
Re: Axe Debug
« Reply #11 on: September 18, 2010, 07:36:18 pm »
Pop hl \ push hl :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Axe Debug
« Reply #12 on: September 18, 2010, 07:42:24 pm »
Wait, wait, wait....how can you see the file's code after it's compiled? I'm confused! will this compile the code itself?

SirCmpwn

  • Guest
Re: Axe Debug
« Reply #13 on: September 18, 2010, 07:47:17 pm »
Well, I might have you browse to the source code, or look for a program with .NAME at the header, where NAME is the name of the executing program.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Debug
« Reply #14 on: September 18, 2010, 07:48:42 pm »
Pop hl \ push hl :)

Okay, and how does doing that do anything?  Like what is the specific mechanism for finding where in the code you are?