Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to make the IDE tell me at which line at the code the program is crashing?  (Read 1516 times)

0 Members and 2 Guests are viewing this topic.

Lexi

  • Newbie
  • *
  • Posts: 3
    • View Profile
I am porting from very old IDE so i am not familiar with modern IDE,
I tried using compiling and debugging options with no result.

I think my program is entering to infinity loop, however i want the IDE to tell me at which point
of the code the program is being terminated by me.

Thank a lot.
Alex

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
It depends on the IDE.

For example with Code::BLocks, you can use the debuggin tools on the top (if you compiled in debug mode).
Really don't know how to do with VS or other IDE, but it may be similar

Lexi

  • Newbie
  • *
  • Posts: 3
    • View Profile
I am using CODE::BLOCK, what "use the debuggin tools on the top" means? it doesnt help me....

Of course i should have ask it on code::block forums not here...  (My stupid mistake) however if
someone here can help me anyway it can be great.


Alex.

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
there's a toolbar above the coding text zone. There are icons like "text file" with arrows aside. Just click the first one ("debug/continue").
For a full use of debugging tools, there are plenty articles about it on the web wich will explain how to use them better than me ::)

Lexi

  • Newbie
  • *
  • Posts: 3
    • View Profile
Thank for your replay,

I checked it with small program with dividing by zero and indeed it works and show me the info on call stack window,  However when i am closing the running window or pressing ctrl-z or closing the "graphic window", in middle of the running process, i receive no information.
Have any idea?

By the way -> in my project the debug mod is causing my (main) program to immidetlay being closed so i am checking first with small testing programs... (I would check this matter with my main prog'  latter...)

Thanks.

 

anything