jankli
jankli

Reputation: 41

visual studio and c

i'm practicing c and looking to use visual studio. but can I write console C programs and debug it step by step? (i use debug for understading algorithms step by step)

thank you.

Upvotes: 0

Views: 132

Answers (3)

PedroC88
PedroC88

Reputation: 3829

You can code in C++ in Visual Studio, I cannot assure you you will be able to code anything (although in theory you should be able to). But if algorithms are somewhat basic C sintaxis should run well on a C++ project and you can debug such project :).

Check the msdn documentation on how to debug using breakpoints and tracepoints.

Upvotes: 0

bcsanches
bcsanches

Reputation: 2372

You can simple press f9 at a line of interest to create a breakpoint.

Press F5 and the debug will stop at the breakpoint. From there uses F10 and/or F11 to step the code.

Also pressing F10 will start the debug at the first line of the program.

Upvotes: 0

Oded
Oded

Reputation: 499262

Yes, you can. Start off with the c++ version (if you are using Express), it supports c as well.

Visual Studio has a very good debugger and will allow you to step through your code.

Upvotes: 1

Related Questions