Pelles C forum

C language => Beginner questions => Topic started by: PhilG57 on February 17, 2014, 04:33:35 PM

Title: Debugging with many globals
Post by: PhilG57 on February 17, 2014, 04:33:35 PM
Hi.  I'm working with an older program which has many, many globals.  When in the debugger, I need to check the values of a couple of these globals every now and then.  Yes, I know about the 'watch' capability but the names of those I need to check changes often.  While in debug mode, is there some way I can convince the IDE to list these variables in alphabetical order?

Thanks.   
Title: Re: Debugging with many globals
Post by: frankie on February 17, 2014, 04:43:56 PM
What about the debug window (in the lower screen), tab Globals?
No. no way to get them alphabetically ordered. Maybe a feature request?
Title: Re: Debugging with many globals
Post by: TimoVJL on February 17, 2014, 08:30:40 PM
Quote from: frankie on February 17, 2014, 04:43:56 PM
What about the debug window (in the lower screen), tab Globals?
No. no way to get them alphabetically ordered. Maybe a feature request?
Or make an Add-In  ;D
Here is proto for it ;)
Title: Re: Debugging with many globals
Post by: frankie on February 17, 2014, 08:40:28 PM
Really nice Timo!  :D
Title: Re: Debugging with many globals
Post by: PhilG57 on February 17, 2014, 11:15:10 PM
Wow - thank you.  Such super service...

It took me awhile for me to figure out this add-in as I did not notice the updated tool bar.  I kept checking the "Auto, Watch, Locals, Globals, etc. tabs on the debug window...

At first glance, it appears my locals are not being "seen" by the add-in.  My app is a console program if that makes any difference.  I'm still very happy as it is the globals which were driving me nuts.

Many thanks again.