dev-c++ and stack traces

doesnt provide a stack trace at runtime

Page 1 of 1

4 Replies - 3863 Views - Last Post: 04 January 2006 - 12:35 PM Rate Topic: -----

#1 dragonlady  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 57
  • Joined: 07-August 05

dev-c++ and stack traces

Post icon  Posted 04 January 2006 - 12:53 AM

Hi guys :)

I'm relearning C++ using Dev-C++. I've been pretty much exclusively using Eclipse and Java for the past 6 months or so, so I guess I've been a little spoiled, but one thing I love about Eclipse is that when I encounter a runtime error, I get a nice stack trace that allows me to track down the error. Unfortunately Dev-C++ does not provide that. There is a stepper function, however. I'm worried that when I start writing larger programs it might be more difficult to track down a tiny, not-so-obvious bug with the stepper, though, so I was wondering if there was any way in C++ to get a stack trace when an unknown type of exception is thrown at runtime. Thanks :)

Is This A Good Question/Topic? 0
  • +

Replies To: dev-c++ and stack traces

#2 Axter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 24-April 05

Re: dev-c++ and stack traces

Posted 04 January 2006 - 01:00 AM

dragonlady, on 4 Jan, 2006 - 01:50 AM, said:

Hi guys :)

I'm relearning C++ using Dev-C++. I've been pretty much exclusively using Eclipse and Java for the past 6 months or so, so I guess I've been a little spoiled, but one thing I love about Eclipse is that when I encounter a runtime error, I get a nice stack trace that allows me to track down the error. Unfortunately Dev-C++ does not provide that. There is a stepper function, however. I'm worried that when I start writing larger programs it might be more difficult to track down a tiny, not-so-obvious bug with the stepper, though, so I was wondering if there was any way in C++ to get a stack trace when an unknown type of exception is thrown at runtime. Thanks :)

Quote

I was wondering if there was any way in C++ to get a stack trace when an unknown type of exception is thrown at runtime.


Yes. Get a professional compiler and IDE like VC++ 7.1.

DevC++ is a free compiler, and you know the old saying. You get what you pay for. :P
Dev C++ is great for a free compiler, but you can't expect it to match the level of a commercial compiler.
Was This Post Helpful? 0
  • +
  • -

#3 Israel  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 7
  • View blog
  • Posts: 817
  • Joined: 22-November 04

Re: dev-c++ and stack traces

Posted 04 January 2006 - 06:56 AM

VC++ 2005 is free... I'm a Dev fan myself though. VC++ is nice to click and paste something together real fast, but I didn't feel like I was really learning C++ when I did it. If you want to really understand how C++ works, stick to Dev or Borland.

Read this its for VC++ but I'm sure you could transpose it to Dev as well.

This post has been edited by Israel: 04 January 2006 - 07:13 AM

Was This Post Helpful? 0
  • +
  • -

#4 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: dev-c++ and stack traces

Posted 04 January 2006 - 07:19 AM

There is also a plugin for C++ for Eclipse..try it out, see if you like it.
Was This Post Helpful? 0
  • +
  • -

#5 dragonlady  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 57
  • Joined: 07-August 05

Re: dev-c++ and stack traces

Posted 04 January 2006 - 12:35 PM

Thanks for the advice, everyone :) I'll definitely look into your suggestions.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1