Thanks.Once eclipse stopped on a debug breakpoint, I tried to search for "debug view". I searched in windows under show view,but did not see an option for debug view .The only option with debug it shows there is "debug". Is there anywhere else where I need to search this option ?
Maybe you searched for the wrong term ? It's "Debug shell". I could spot it easily in the menu.
Check out the screenshot attached. In the screenshot, I am able to change the value of a variable while the code is running. This can also be done in the variables tab, but debug shell makes it more convenient since we can run actual code statements there.
Monica Shiralkar wrote:I clicked on other and entered "debug shell".There too I saw only debug option.
In the "Debug Shell" tab, type an expression. Select what you typed, right click the selection, and click on the "Display" option to evaluate the expression and display the result.
Sorry. By "entered debug shell" I meant "typed debug shell ".
On clicking windows and then show view we see the options there .Since there was no "debug shell", I clicked on "other" and typed "debug shell" ,it was not there. So it means in the "show view " although debug is there ,there is not "debug Shell's option.
I'm not sure what all of that means, but Salvin already demonstrated how to open the debug shell by posting a picture.
Edit: Instead of selecting "Debug Shell" from the drop-down, you can select "Expressions" and that opens an "Expressions" tab next to the "Variables" and "Breakpoints" tab which you will already be familiar with. It's more obvious how to type expressions into that panel, Debug Shell isn't obvious. And although the name doesn't suggest that, the "Expressions" tab is used to store "watch expressions". Those are updated automatically as the task being debugged runs.
Paul Clapham wrote:I'm not sure what all of that means, but Salvin already demonstrated how to open the debug shell by posting a picture.
Monica is saying that when she does what Salvin shows that there is no "Debug Shell" option in the drop down.
Then, when selecting the "Other" option at the bottom of that drop down and then entering "Debug Shell" in the filter box that it does not appear either, implying that the view does not exist in her Eclipse.
Indeed, looking up the history of Debug Shell it looks like it came in with Photon, so is not available in Oxygen...which is 3 years old now or so?