Old 02-22-2014, 05:50 AM   #1
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default watch.jsfx-inc - Memory debugging aid

A more modern take on my memory debugging tool... https://stash.reaper.fm/v/19828/watch.zip

You can create multiple watch panels to see the contents of different chunks of global/local memory. I've set up overrides of most functions so you can specify as many/few parameters as you need.

The functions all use a namespace passing system, using the name of the object as first argument. You might find it a bit awkward at first but I find it makes the code easier to manage and doesn't require any more typing.

Simple example:
Code:
import watch.jsfx-inc

@init
watch.Create(w1);         // watch at offset 0
watch.Create(w2, 128);    // watch at offset 128
watch.SetPos(w2, 0, 100); // move w2 so it doesn't draw over w1

// Fill memory with test values
i = 0;
loop
(
   1024,
   i[] = i;
   i += 1;
);
 
@gfx
watch.Draw(w1);
watch.Draw(w2);
There's no documentation yet but the code is well commented so you shouldn't have any trouble working it out. Feel free to ask questions if you need to.

I haven't implemented any kind of show/hide functionality. I probably will at some point but if anyone wants to save me the trouble, feel free to post improvements here or message me.

Comments and suggestions welcome as always.
IXix is offline   Reply With Quote
Old 02-11-2017, 08:41 AM   #2
flipm1967
Human being with feelings
 
Join Date: Mar 2014
Location: Hampshire. UK.
Posts: 5
Default Useful

Hi,

useful! Thanks. JSFX is a pain and I come from a C++ background!
flipm1967 is offline   Reply With Quote
Old 02-11-2017, 10:40 AM   #3
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Quote:
Originally Posted by flipm1967 View Post
Hi,

useful! Thanks. JSFX is a pain and I come from a C++ background!
Thanks.
IXix is offline   Reply With Quote
Old 09-19-2017, 05:59 PM   #4
casrya
Human being with feelings
 
Join Date: Dec 2013
Location: Melbourne, Australia
Posts: 96
Default

Another thank you! .. helped me fix a bug today Wish I had discovered it sooner though since I have been known to output memory dumps to the midi console when in a pinch :P

I really wish they would integrate a basic raw memory display into the jsfx ide though .. I have requested it before but maybe Justin is so accurate with his indexing he never needs one hehe
casrya is offline   Reply With Quote
Old 09-20-2017, 01:08 AM   #5
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Quote:
Originally Posted by casrya View Post
Another thank you! .. helped me fix a bug today Wish I had discovered it sooner though since I have been known to output memory dumps to the midi console when in a pinch :P

I really wish they would integrate a basic raw memory display into the jsfx ide though .. I have requested it before but maybe Justin is so accurate with his indexing he never needs one hehe
Glad it helped you.
IXix is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.