First time here? Check out the FAQ!
1

How to move into the ReadPythonNews()
 

During debugging If we place a breakpoint on news = ReadPythonNews(GetItemCount()), how to move into ReadPythonNews() and eventually to the last line of ReadPythonNews() which is return news[:count]

Trying to do the part of the tutorial(https://wingware.com/doc/int... displayed below

Try stepping or running to a breakpoint on the last line of this function, which reads return news[:count]. In this context, right-clicking on news under locals in Stack Data allows viewing the value in textual form or as an array.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
Anonymous
asked 2 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 2 years ago

Comments

see more comments

2 Answers

0

If you're stopped at the news = ReadPythonNews(GetItemCount()) line, Debug > Step Into should step into the function calls, first into GetItemCount() and then after more stepping, into ReadPythonNews(). You may want Debug > Step Over and Debug > Step Out when in GetItemsCount().

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 2 years ago
link

Comments

see more comments
0

For the specific case where you want to step into ReadPythonNews, Step Into will go into GetItemCount then Step Out will go into ReadPythonNews. Or set a breakpoint at the end of ReadPythonNews by clicking on the leftmost margin next to that line in the editor. We'll try to make the instructions in the tutorial clearer.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 2 years ago
link

Comments

see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)