3

CS50 has now released debug50 a more stable version than its predecessor. You can also manually use gdb through the command-line with; gdb OBJECT-FILE (where OBJECT-FILE is a vigenere.o, or just vigenere). Inside of which you can type r for run, n for next, c for continue, and b followed by a line number or function, such as b 50 (breaks line 50) or b foo (...


2

That's because you're trying to store the character at the 1st index of a char array (string), node, into an int variable directly, without converting it into an int first. So the 5 in your example is being treated as the character '5' and not the integer 5, and like storing any other character into an int variable, its ascii value gets stored in octave1.


1

your problem based on your function checksum. Take a look inside of the background description: partial = partial + finder(counter, number); your line is partially right. the part *finder(counter, number)" do not take of number higher 10. And at least: You're missing followed step inside of your function ;-) Now let’s add that sum (27) to the sum of ...


1

debug50 is the right tool. To set a breakpoint in your source (before running debug50), click in the gutter to the left of the line number and a 🔴 will appear.


1

I found it. On the code editor in C9, right click and click "add conditional breakpoint" or click the line number to create a breakpoint and right click to set a condition for it. It will prompt for a condition, and the debugger will break the execution once the condition is met. Pretty easy actually :$


Only top voted, non community-wiki answers of a minimum length are eligible