Questions tagged [debug50]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

How to skip loop iterations with debug50?

I'm struggling with the recover problem. I'm running a while loop that's more than 7 thousand iterations long. I get a segmentation fault because (i'm pretty sure) of the last or perhaps the last but ...
0
votes
1answer
71 views

Program and debug50 different results

I'm trying to do pset3/tideman. My question is, why when I run program, I get different result (matrix[m]) than run with debug50? void lock_pairs(void) { for (int i = 0; i < pair_count; i++) ...
0
votes
0answers
18 views

How to fix this? I can't use debug50 in python

This is the output when I use debug50 in phyton Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/...
0
votes
1answer
51 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); /...
5
votes
0answers
211 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 ...
0
votes
1answer
314 views

To those who struggle with pset4’s filter-more’s edge detection filter

I’m sure it is obvious for some people, but it wasn’t for me) If your code isn’t working the way it should, you can create new .c file and put there your logic from edge detection function. You can ...
0
votes
0answers
35 views

debug50 problem when I run it

what is this problem anyone knows how I solve it. when I run debug50 there is a message appear say IKP3db error: Failed to set a breakpoint at /home/ubuntu/caesar.c:36 (Line /home/ubuntu/caesar.c:36 ...
0
votes
1answer
157 views

Debug50 Running through breakpoints

I am trying to use debug50 for PSET 4 (Recover). However, when I set the breakpoints the debugger runs through them and do not pause. Only when I set the breakpoint at the if statement shown in the ...
0
votes
1answer
49 views

PSET3 Resize (Less) - works in debug50 but segmentation error when executing

I'm working on resize (less comfortable) in pset3 and it returns segmentation error when I execute the code. However, when I try to work out which line actually went wrong using debug50 and go through ...
0
votes
1answer
272 views

How to exit debug50 window?

Can anyone tell me, how to close degub50 window and terminate a programm so I don't have to run my code to the end if I've already found a bug?
0
votes
1answer
28 views

vigenere file produces two different different outputs throug debug50 and ./vigenere

This is for pset2 vigenere; Through check50, my code works, except for one case: "a does not produce a under key 'a'". If you copy my code, compile it, and run it, it works fine sometimes and other ...
0
votes
1answer
193 views

Can not use debug50

The error message: Can't debug this program! Are you sure you compiled it with -ggdb? I am using CS50 to debug my C++ program, but after typing "debug50 ./(program name)", it showed the above error ...
0
votes
1answer
201 views

How to keep track of cursor in fread/fwrite etc

after two or more weeks I have finished recover problem set - the longest issue was with the cursor and debugging. I less than more know how to use debug50 but if somebody could tell me how can I ...
0
votes
1answer
575 views

debug50 does not open my code

I want to debug my program with debug50 but when I run debug50 recover card.raw it does not stop at the breakpoints or show any variables or anything - see only the line number of breakpoint but ...
0
votes
1answer
51 views

pset4 resize: no problem with debug50 but file becomes corrupt

Here is my code. Debug50 runs without any wrong value but when i open the file AFTER using debug50, it shows to be of 0 bytes and doesn't open. on compiling with ./resize, some of the bytes get ...
0
votes
1answer
48 views

“Game of Fifteen” debug50 works but not actual execution

My init function works in step by step debug mode but it does not when I actually execute the file, why is this? void init(void) { for (int k = 0; k < d; k++) { for (int l = 0; l < d; l++)...
0
votes
2answers
41 views

./generate 1000 | ./find 42 failed, get_int() got nothing but program still worked

If I use ./generate 10, I can successfully printf a random list, and if I use ./find 42, there successfully comes prompts to a ask me input numbers. However, if I use ./generate 10 | ./find 42, the ...
0
votes
0answers
44 views

in my cs50ide account

debug50 is not working in my IDE. What should I do? Any suggestion. Please fast!
0
votes
0answers
129 views

FATAL: varcache miss for varobj var50.0 while using debug50

I am trying to debug a code but whenever I try to run gdb I'm getting FATAL: varcache miss for varobj var50.0 #import <stdio.h> int main(){ int n; scanf("%d",&n); int arr[1000]...
1
vote
1answer
255 views

CS50 IDE Debugger stops after having executed the code line at breakpoint

The debugger itself seems to work fine, but my problem is : When I set a breakpoint in the gutter and then I properly run the debugger, the code stop at my breakpoint, but it doesn't stop before ...
0
votes
1answer
72 views

Does IDE50 offer an an “Immediate” window or the ability to use breakpoints/watches?

I'm trying to debug some C code, and the Dubugging feature built into IDE50/Cloud9 doesn't seem to work with C. Is there a way for me to perform common debugging tasks in IDE50 like add breakpoints, ...
1
vote
1answer
240 views

How to initiate debug50 when a variable reaches a certain value?

I am working on recover.c and I need to debug my code by watching the variable states. However, stepping through the program 400 times in a loop is not very easy, how can I set up the debugger so that ...