Have you tried the following methods:
Place a breakpoint on the line where you want to see the value. Run the debugger in this file and go to the "Variables" tab ( Window > Debugger > Variables ). This displays the values โโof your variables at this breakpoint. These lines can also have child lines - for example. If there was an array named myArray , you can click on the + icon next to it to see each element value.
You can also evaluate conditional expressions by going to 'Debug' > 'Evaluate Expression' . For example, in an iteration loop over "myArray" you can enter myArray[2] == 5 and click the green arrow -> to evaluate it. If the value of this element is 5, this indicates an expression, a type ( boolean in this example), and the output of this test.
OR
Insert a breakpoint wherever you want to control the variable.
Right-click the breakpoint and select Breakpoint Properties.
Set the pause to โNo thread (continued).โ
Then simply fill in the appropriate field with the format {=<variable name>} . So, for example, input: " myVar value @ L30 is: {=myVar} " will output " myVar value @ L30 is: 1 " to the debugger console.
You do not need to recompile. Just run under the debugger and switch to console output.
cognophile
source share