Questions tagged [debug]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
333 views

Do YOU know how to find a seg fault?? Advice to new programmers

I have noticed a rash of questions lately that are essentially this: "My code has a segmentation fault. The code compiles, many tests pass, but I can't figure out the problem!" If this is you, then ...
1
vote
0answers
50 views

how can we step through pset8 in debug mode?

So when I run my code in flask I get no infowindows. I wondered what this does in the distribution code: // open info window (if not already open) info.open(map, marker); How can I debug in ...
1
vote
3answers
3k views

Debugger not working in cs50 online ide

Hi I am doing cs50 and for the past few days the debugger on the ide is not responding. Whenever i press debug with breakpoints provided it just stops at the following point: What should I do? Edit: ...
0
votes
1answer
55 views

HELP ME!! CS50 pset1 credit.c says INVALID but when I debug it says AMEX?

#include <stdio.h> #include <cs50.h> int main(void) { long long cc; //get user input for cc do { cc = get_long_long("Number: "); } while (cc <= 0); /...
0
votes
1answer
266 views

c:30:25: error: invalid operands to binary expression ('char *' and 'string' (aka 'char *'))

Hey guys could someone advice me on the flaws in the following line of code. I'm visited by the following error message: c:30:25: error: invalid operands to binary expression ('char *' and '...
0
votes
0answers
441 views

How to debug Crack based on ten passwords given?

In crack since there is no check50 the assignment suggests inputting the 10 hashed passwords at the top of the assignment, but when I try that only 7/10 successfully return a password. Since the rest ...
0
votes
1answer
101 views

pset 1 hacker credit

#include<stdio.h> // have four spaces before code lines #include<cs50.h> // this will insert them in the code block #include<math.h> bool checksum(long long num); bool visa(long ...
0
votes
1answer
156 views

How to debug pset8 search.php?

Hello I have trouble to do any debuging in search.php pset8. In previous problems there where always some way to print my variables and figure out what was wrong with my querys och logics. However in ...