Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Variables windows during debug
Variables windows during debug [message #6902] Mon, 04 December 2006 00:55 Go to next message
g00fy is currently offline  g00fy
Messages: 15
Registered: December 2006
Location: Mechelen, Belgium, Europe
Promising Member
During debug you see variables in the bottom of the screen.

What I am suggesting is to:

1/ sort them, and sort their inner variables too (also during exploring).

2/ In Auto's window: Show the result of the last completed function. And if for example it's code like:

int func(int i) { return i*2; }
=>
i = 10;
func( func( func(i) ) );


Then it should show:
func returns         20
func returns         40
func returns         80
i                    10


So basically it's like: show return of each function + the variables used in those function calls...


This behaviour reflects the one of Visual Studio IDE.


Greetz Wink
Steven
Re: Variables windows during debug [message #6905 is a reply to message #6902] Mon, 04 December 2006 08:23 Go to previous messageGo to next message
g00fy is currently offline  g00fy
Messages: 15
Registered: December 2006
Location: Mechelen, Belgium, Europe
Promising Member
Oh, just seen this one:

a call trace would be nice!
Re: Variables windows during debug [message #6912 is a reply to message #6905] Mon, 04 December 2006 11:59 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It is there - the field that displays current function has drop-down button.

Mirek
Re: Variables windows during debug [message #6936 is a reply to message #6902] Tue, 05 December 2006 13:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
g00fy wrote on Sun, 03 December 2006 18:55


int func(int i) { return i*2; }
=>
i = 10;
func( func( func(i) ) );


Then it should show:
func returns         20
func returns         40
func returns         80
i                    10


So basically it's like: show return of each function + the variables used in those function calls...


This behaviour reflects the one of Visual Studio IDE.


Greetz Wink
Steven


Well, unfortunately, TheIDE's option there are somewhat limited by the library MS provides to retrieve the debug info from executables and also by documentation provided for that library... Smile

In reality, debugger is useful, but very often U++ LOG is better tool to for debugging. For GUI code, it is often the only option.

Mirek
Re: Variables windows during debug [message #6943 is a reply to message #6936] Tue, 05 December 2006 15:54 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:

For GUI code, it is often the only option.

You can still use debugger but your app window must be open on second screen...
Re: Variables windows during debug [message #6944 is a reply to message #6943] Tue, 05 December 2006 16:13 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
unodgs wrote on Tue, 05 December 2006 09:54

Quote:

For GUI code, it is often the only option.

You can still use debugger but your app window must be open on second screen...


Well, that solves one problem.

But another one is that often some place in the code has to be performed 1000 times before something interesting happens. In that case, LOGs and Find (in the LOG file) are best option.

Yet another, more or less C++ problem is that debuggers are good for dumping simple values. But when dealing with complex C++ structures, it is often difficult.

Mirek
Previous Topic: Ctrl Documentation Bug?
Next Topic: Browse button to find myapps location
Goto Forum:
  


Current Time: Sun Apr 28 08:17:34 CEST 2024

Total time taken to generate the page: 0.70331 seconds