Thread: Bloodshed Dev C++ 5.11 cannot debug (step thru)

  1. #1
    Registered User
    Join Date
    Aug 2016
    Location
    Canada
    Posts
    8

    Bloodshed Dev C++ 5.11 cannot debug (step thru)

    Hello,

    Bloodshed Dev C++ 5.11 (which also says 4.9.9.2)
    I am running it 64 bit on a Windows 10 64 bit machine.
    I am unable to step thru the code in debug mode.
    It starts ok but stops at line where the endl is. F7 or F8 does nothing. It just refuses to continue past this line.
    Can any one tell me how to F7 thru the code to completion?
    Code:
    int main(){
    int i;
    int j;
    int n = 3;
    
    
    for (i=1;i<=n;i++)
        for (j=0;j<=i;j++)
            if (j < i)
            cout << "*";
            else
            cout << endl;  
      }

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Set a breakpoint at the start of your loop by clicking on the line number. That makes it so when you run the program it will stop there.

  3. #3
    Registered User
    Join Date
    Aug 2016
    Location
    Canada
    Posts
    8
    I did place the breakpoint the first time. At line 9 in fact. I then run in debug mode. I F7 (step thru). It stops at line 12 the first time it gets there then goes nowhere despite hitting F7 or F8. Its supposed to go to the top for loop and begin the next iteration. I think there's something wrong with Dev C++. I have since downloaded CodeBlocks and it successfully steps thru the code to completion like its supposed to. If this forum recommends CodeBlocks then I will use CodeBlocks.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Bloodshed dev-c++ is archaic, and abandoned long ago (about a decade).

    Codeblocks is a good choice.

    Dev-C++ download | SourceForge.net is another choice.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 08-09-2015, 12:30 PM
  2. Replies: 1
    Last Post: 03-08-2013, 03:16 AM
  3. Step by step read data from exe file to memory.
    By JoBlack in forum C++ Programming
    Replies: 1
    Last Post: 06-23-2012, 02:02 PM
  4. Replies: 4
    Last Post: 05-26-2011, 06:51 AM
  5. step by step debug != run debug
    By bonkey in forum Windows Programming
    Replies: 8
    Last Post: 09-09-2002, 12:55 PM

Tags for this Thread