I do not see debugger entering a function

Posted on 2014-08-16
Last Modified: 2014-08-16
//Character arrays and pointers
void printOnScreen(char* C)
	int i = 0;
	while (*(C+i)!='\0')
		printf("%c", C[i]);
int main()
	char C[20] = "Hello";

Open in new window

the debugger should go to function

instead next line is crtexe.c
and never back to 1.c

I want to see debugger in printOnScreen function
Question by:rgb192
    LVL 31

    Accepted Solution

    You are at Line 17 and you want to go into the function, printOnScreen, right?
    Then hit F11 to step into the function.
    See sections 2.3 and 2.4 in this article:

    Author Closing Comment

    Turns debugging into playing a video game, but your solution works.

    LVL 31

    Expert Comment

    Or you can set a breakpoint in the printOnScreen function, start over, and hit F5 to begin running the program until either the end, or until it hits the breakpoint.

    Author Comment

    Thanks for other solution also with breakpoint.

    I up-voted your articles
    LVL 31

    Expert Comment

    Good that this is now working for you. Learning how to use this debugger will save you a ton of time as you learn C.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
    Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
    Video by: Grant
    The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now