Make it easier to show the memory from the variable viewer

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Make it easier to show the memory from the variable viewer

Post by Hurga »

What I find a bit uncomfortably to show the memory when I have a pointer or a memarea in the variable list.
What I have to do now is:
- open memory viewer
- read the adress from the variable viewer
- write it as startmem in the memory viewer
- think about how large is the mem allocated here
- add this to the "-" field
- pray that I didnt make any mistake

... hard work, isnt it?

So heres my wish...
It would be great, if there is a memory stored into a variable or pointer, to right click in the variable viewer and in the popping up context menu there would be an option -> show memory....

This opens the memory viewer and shows the allocated mem at these adress.

Any chance for this?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Since PB 4.20, this is much simpler:

If your variable is called "*Buffer" and you want to view 100 bytes, then you just do this:
- open memory viewer
- enter "*Buffer" in the first field (no quotes)
- enter "+100" in the second field (no quotes)
- press display

The memory viewer can resolve variables and even more complex expressions, and the second field is interpreted as relative if it starts with a + (the second field can contain variables too btw)

I can add the menu entry, but it is already quite simple as it is. ;)
quidquid Latine dictum sit altum videtur
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post by Hurga »

Thx for the reply.
I know the +100 thing, but i Didnt know the *Buffer.

That makes it a bit easier, but if you can add the menu entry, i woul dbe a bit more easy ;-)

Thx
Post Reply