Recent

Author Topic: Watches and Dynamic Arrays [Solved]  (Read 3282 times)

Ramijami

  • Jr. Member
  • **
  • Posts: 87
Watches and Dynamic Arrays [Solved]
« on: January 18, 2012, 02:21:04 pm »
Is there a way to see if a dynamic array is loaded properly? I have done a search, done the debugging settings and looked at the GDB_Debugger_Tips and have tried the '^' to see the contents of the array while the programme is runnning but nothing appears, just the "No symbol in current context" message. Are there any workarounds? I can see normal static arrays fine.
« Last Edit: October 19, 2012, 10:58:37 am by Ramijami »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12345
  • Debugger - SynEdit - and more
    • wiki
Re: Watches and Dynamic Arrays
« Reply #1 on: January 18, 2012, 02:43:08 pm »
You can watch individual members of the array, but unfortunately not the entire array.

To watch a member you might need the ^ operator (in 0.9.31 you should not need it anymore)

There are hacks to inspect the internal data of the array.
Not tested it now, but from memory:
(^integer(yourarray)-1)^
(^integer(yourarray)-2)^

If integer does not work, then try longint

 

TinyPortal © 2005-2018